X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=Source%2FWebCore%2Fplatform%2Fgraphics%2Fchromium%2FWebGLLayerChromium.h;h=6374b9ef6b117ad2355a1fadb69ddb4107a69310;hb=b96e33af77ac7d81a666d5aa202235b793aeeb21;hp=7236bac7fe486bb2c24c65652262a063952b0e74;hpb=2632619e54bc9f41ccea7c574710fe213e49212d;p=framework%2Fweb%2Fwebkit-efl.git diff --git a/Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.h b/Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.h index 7236bac..6374b9e 100755 --- a/Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.h +++ b/Source/WebCore/platform/graphics/chromium/WebGLLayerChromium.h @@ -35,7 +35,7 @@ #if USE(ACCELERATED_COMPOSITING) #include "CanvasLayerChromium.h" -#include "Timer.h" +#include "DrawingBuffer.h" namespace WebCore { @@ -50,29 +50,27 @@ public: virtual ~WebGLLayerChromium(); virtual bool drawsContent() const; - virtual void updateCompositorResources(GraphicsContext3D*, TextureAllocator*); - void setTextureUpdated(); + virtual void updateCompositorResources(GraphicsContext3D*, CCTextureUpdater&); + virtual void contentChanged(); bool paintRenderedResultsToCanvas(ImageBuffer*); - void setContext(const GraphicsContext3D* context); - GraphicsContext3D* context() { return m_context; } + GraphicsContext3D* context() const; + void setDrawingBuffer(DrawingBuffer*); + DrawingBuffer* drawingBuffer() const { return m_drawingBuffer; } private: explicit WebGLLayerChromium(CCLayerDelegate*); friend class WebGLLayerChromiumRateLimitTask; GraphicsContext3D* layerRendererContext(); - void rateLimitContext(Timer*); - - // GraphicsContext3D::platformLayer has a side-effect of assigning itself - // to the layer. Because of that GraphicsContext3D's destructor will reset - // layer's context to 0. - GraphicsContext3D* m_context; bool m_textureChanged; - bool m_contextSupportsRateLimitingExtension; - Timer m_rateLimitingTimer; bool m_textureUpdated; + + // The DrawingBuffer holding the WebGL contents for this layer. + // A reference is not held here, because the DrawingBuffer already holds + // a reference to the WebGLLayerChromium. + DrawingBuffer* m_drawingBuffer; }; }