diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/opengl/TextureMapperGL.h')
-rw-r--r-- | Source/WebCore/platform/graphics/opengl/TextureMapperGL.h | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/Source/WebCore/platform/graphics/opengl/TextureMapperGL.h b/Source/WebCore/platform/graphics/opengl/TextureMapperGL.h index 1b411857c..08fa0adef 100644 --- a/Source/WebCore/platform/graphics/opengl/TextureMapperGL.h +++ b/Source/WebCore/platform/graphics/opengl/TextureMapperGL.h @@ -43,16 +43,17 @@ public: virtual void drawTexture(uint32_t texture, bool opaque, const FloatSize&, const FloatRect&, const TransformationMatrix&, float opacity, const BitmapTexture* maskTexture, bool flip); virtual void bindSurface(BitmapTexture* surface); virtual void beginClip(const TransformationMatrix&, const FloatRect&); + virtual void beginPainting(); + virtual void endPainting(); virtual void endClip(); - virtual bool allowSurfaceForRoot() const { return false; } virtual PassRefPtr<BitmapTexture> createTexture(); virtual const char* type() const; static PassOwnPtr<TextureMapperGL> create() { return adoptPtr(new TextureMapperGL); } - void beginPainting(); - void endPainting(); void setGraphicsContext(GraphicsContext* context) { m_context = context; } GraphicsContext* graphicsContext() { return m_context; } virtual bool isOpenGLBacked() const { return true; } + void platformUpdateContents(NativeImagePtr, const IntRect&, const IntRect&, BitmapTexture::PixelFormat); + virtual AccelerationMode accelerationMode() const { return OpenGLMode; } private: bool beginScissorClip(const TransformationMatrix&, const FloatRect&); @@ -64,16 +65,6 @@ private: }; // An offscreen buffer to be rendered by software. -class BGRA32PremultimpliedBuffer { - WTF_MAKE_FAST_ALLOCATED; -public: - virtual ~BGRA32PremultimpliedBuffer() { } - virtual PlatformGraphicsContext* beginPaint(const IntRect& dirtyRect, bool opaque) = 0; - virtual void endPaint() = 0; - virtual void* data() = 0; - static PassOwnPtr<BGRA32PremultimpliedBuffer> create(); -}; - static inline int nextPowerOfTwo(int num) { for (int i = 0x10000000; i > 0; i >>= 1) { |