Bug 41106 - [chromium] Allow composited layers to own their textures and specify how they get rendered
Summary: [chromium] Allow composited layers to own their textures and specify how they...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-23 14:52 PDT by Vangelis Kokkevis
Modified: 2010-06-24 11:11 PDT (History)
1 user (show)

See Also:


Attachments
Proposed patch (43.05 KB, patch)
2010-06-23 15:54 PDT, Vangelis Kokkevis
fishd: review-
Details | Formatted Diff | Diff
Proposed patch addressing review comments (58.75 KB, patch)
2010-06-23 18:04 PDT, Vangelis Kokkevis
fishd: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Vangelis Kokkevis 2010-06-23 14:52:33 PDT
This is in preparation for hooking up WebGL with the compositor. The current code is too inflexible and makes adding new layer types that need special handling difficult.
Comment 1 Vangelis Kokkevis 2010-06-23 15:54:23 PDT
Created attachment 59570 [details]
Proposed patch
Comment 2 Darin Fisher (:fishd, Google) 2010-06-23 16:24:51 PDT
Comment on attachment 59570 [details]
Proposed patch

Looks good to me.  Just a couple nits:

WebCore/platform/graphics/chromium/LayerChromium.cpp:399
 +  unsigned int WebGLLayerChromium::m_shaderProgramId = 0;
nit: webkit style is to just use "unsigned" instead of "unsigned int"

WebCore/platform/graphics/chromium/LayerChromium.h:257
 +  class ImageLayerChromium : public LayerChromium {
style-nit: one class per file is the rule.  would you be okay splitting
these out into their own files?
Comment 3 Vangelis Kokkevis 2010-06-23 18:04:50 PDT
Created attachment 59593 [details]
Proposed patch addressing review comments
Comment 4 Vangelis Kokkevis 2010-06-23 18:05:41 PDT
(In reply to comment #2)
> (From update of attachment 59570 [details])
> Looks good to me.  Just a couple nits:
> 
> WebCore/platform/graphics/chromium/LayerChromium.cpp:399
>  +  unsigned int WebGLLayerChromium::m_shaderProgramId = 0;
> nit: webkit style is to just use "unsigned" instead of "unsigned int"

Done. Also fixed all other instances of unsigned in the layer code.

> 
> WebCore/platform/graphics/chromium/LayerChromium.h:257
>  +  class ImageLayerChromium : public LayerChromium {
> style-nit: one class per file is the rule.  would you be okay splitting
> these out into their own files?

Done.
Comment 5 Darin Fisher (:fishd, Google) 2010-06-24 11:11:25 PDT
Landed as http://trac.webkit.org/changeset/61775