Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1984)

Unified Diff: Source/platform/graphics/gpu/DrawingBuffer.h

Issue 614883002: Use glDiscardFramebuffer to save memory bandwidth (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/Source/platform/graphics/gpu/DrawingBuffer.h b/Source/platform/graphics/gpu/DrawingBuffer.h
index 20d50c5c089bf398bb1f64deaf268937e60ddf17..d8bb2eb92f360e79907db8e220d853455e59d976 100644
--- a/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -136,6 +136,8 @@ public:
Platform3DObject framebuffer() const;
+ bool discardFramebufferSupported() const { return m_discardFramebufferSupported; }
+
void markContentsChanged();
void markLayerComposited();
bool layerComposited() const;
@@ -169,6 +171,7 @@ protected: // For unittests
PassOwnPtr<Extensions3DUtil>,
bool multisampleExtensionSupported,
bool packedDepthStencilExtensionSupported,
+ bool discardFramebufferSupported,
PreserveDrawingBuffer,
WebGraphicsContext3D::Attributes requestedAttributes,
PassRefPtr<ContextEvictionManager>);
@@ -239,6 +242,7 @@ private:
WebGraphicsContext3D::Attributes m_requestedAttributes;
bool m_multisampleExtensionSupported;
bool m_packedDepthStencilExtensionSupported;
+ bool m_discardFramebufferSupported;
Platform3DObject m_fbo;
// DrawingBuffer's output is double-buffered. m_colorBuffer is the back buffer.
TextureInfo m_colorBuffer;
« no previous file with comments | « Source/core/html/canvas/WebGLRenderingContextBase.cpp ('k') | Source/platform/graphics/gpu/DrawingBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698