diff options
Diffstat (limited to 'Source/WebCore/platform/graphics/gpu/DrawingBuffer.h')
-rw-r--r-- | Source/WebCore/platform/graphics/gpu/DrawingBuffer.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h b/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h index 49ae114..606484e 100644 --- a/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h +++ b/Source/WebCore/platform/graphics/gpu/DrawingBuffer.h @@ -42,6 +42,10 @@ #include <wtf/RetainPtr.h> #endif +#if ENABLE(SKIA_GPU) +class GrContext; +#endif + namespace WebCore { #if PLATFORM(CHROMIUM) @@ -59,6 +63,7 @@ public: void reset(const IntSize&); void bind(); IntSize size() const { return m_size; } + Platform3DObject colorBuffer() const { return m_colorBuffer; } // Clear all resources from this object, as well as context. Called when context is destroyed // to prevent invalid accesses to the resources. @@ -94,6 +99,10 @@ public: void setWillPublishCallback(PassOwnPtr<WillPublishCallback> callback) { m_callback = callback; } #endif +#if ENABLE(SKIA_GPU) + void setGrContext(GrContext* ctx); +#endif + PassRefPtr<GraphicsContext3D> graphicsContext3D() const { return m_context; } private: @@ -130,6 +139,10 @@ private: #if PLATFORM(MAC) RetainPtr<WebGLLayer> m_platformLayer; #endif + +#if ENABLE(SKIA_GPU) + GrContext* m_grContext; +#endif }; } // namespace WebCore |