Splash Screen

78 views
Skip to first unread message

Ben Rockefeller

unread,
Jul 6, 2011, 9:12:12 PM7/6/11
to Chromium-dev
Hi,

For a project I want to show an image in the content area of chromium
browser window during launch time, one that would go away once the
real content is loaded, sort of like a splash screen. I know in Webkit
FrameView.cpp there is code that initializes what base color (white)
should be used for content area of the chromium window.

So my question is: How can I hijack the framebuffer so that I can put
this splash screen image to display before chromium has initialized
and displayed real content. Is there a proper solution for this
already in works...

Thanks

Peter Kasting

unread,
Jul 6, 2011, 9:17:24 PM7/6/11
to benrock...@gmail.com, Chromium-dev
On Wed, Jul 6, 2011 at 6:12 PM, Ben Rockefeller <benrock...@gmail.com> wrote:
For a project I want to show an image in the content area of chromium
browser window during launch time, one that would go away once the
real content is loaded, sort of like a splash screen.

If this is showing for long enough for users to see much more than a flash, we're doing something wrong.

PK

Ben Rockefeller

unread,
Jul 6, 2011, 9:29:49 PM7/6/11
to Chromium-dev
No. If I start chromium from commandline with n tabs (urls specified
on command line), then the network latency to fetch the content also
comes into play...I would want the base image to be displayed in the
content window till content is fetched and rendered...


On Jul 6, 6:17 pm, Peter Kasting <pkast...@chromium.org> wrote:
> On Wed, Jul 6, 2011 at 6:12 PM, Ben Rockefeller
> <benrockefell...@gmail.com>wrote:

Peter Kasting

unread,
Jul 7, 2011, 1:11:27 AM7/7/11
to benrock...@gmail.com, Chromium-dev
On Wed, Jul 6, 2011 at 6:29 PM, Ben Rockefeller <benrock...@gmail.com> wrote:
No. If I start chromium from commandline with n tabs (urls specified
on command line), then the network latency to fetch the content also
comes into play...

Again, we should be prioritizing the foreground tab's loads so background tabs don't delay it.  If we're not doing this, we should file bugs to do so.

Making the browser appear usable as fast as possible -- if possible, even before it's actually usable -- is a critical part of making Chrome startup feel fast.  Mozilla learned long ago (to their chagrin) that splash UI on loading is counterproductive from both a real and a perceptual standpoint.

If you're only doing this locally for some one-off thing, that's fine, but there won't be (and shouldn't be) any effort to support this kind of thing in the main repository.

PK

Ben Rockefeller

unread,
Jul 11, 2011, 9:58:20 AM7/11/11
to Chromium-dev
Ok thanks...any pointers on where to start to make the local change.
Would this be in Webkit...

Thanks

On Jul 6, 10:11 pm, Peter Kasting <pkast...@chromium.org> wrote:
> On Wed, Jul 6, 2011 at 6:29 PM, Ben Rockefeller
> <benrockefell...@gmail.com>wrote:

Peter Kasting

unread,
Jul 12, 2011, 4:10:48 PM7/12/11
to benrock...@gmail.com, Chromium-dev
On Mon, Jul 11, 2011 at 6:58 AM, Ben Rockefeller <benrock...@gmail.com> wrote:
Ok thanks...any pointers on where to start to make the local change.
Would this be in Webkit...

I would imagine this would be browser-side.  You'd probably have to hook the navigation controller somehow.

PK
Reply all
Reply to author
Forward
0 new messages