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

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

Issue 2822743003: Preserve alpha channel of 1.0 when emulating RGB back buffer.
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
index 16e778c1f44c1eeb9fa3e3b0720ee17a1eb2b19e..3608f7be13cebe26fc1d8c398df63e0659765b92 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
+++ b/third_party/WebKit/Source/platform/graphics/gpu/DrawingBuffer.h
@@ -185,6 +185,11 @@ class PLATFORM_EXPORT DrawingBuffer
// default framebuffer.
bool DefaultBufferRequiresAlphaChannelToBePreserved();
+ // Tells the DrawingBuffer that BlitFramebuffer was used to populate
+ // it this frame. This requires more expensive emulation in some
+ // circumstances.
+ void MarkBlitFramebufferUsedThisFrame();
+
WebLayer* PlatformLayer();
gpu::gles2::GLES2Interface* ContextGL();
@@ -487,6 +492,10 @@ class PLATFORM_EXPORT DrawingBuffer
bool contents_change_resolved_ = false;
bool buffer_clear_needed_ = false;
+ // True if BlitFramebuffer was used to populate the DrawingBuffer
+ // this past frame.
+ bool blit_framebuffer_used_this_frame_ = false;
+
// Whether the client wants a depth or stencil buffer.
const bool want_depth_;
const bool want_stencil_;

Powered by Google App Engine
This is Rietveld 408576698