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

Unified Diff: components/display_compositor/buffer_queue.h

Issue 2612023002: cc: Implement overdraw feedback debugging feature. (Closed)
Patch Set: make sure overdraw_feedback_ is initialized and reset properly Created 3 years, 11 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/display_compositor/buffer_queue.h
diff --git a/components/display_compositor/buffer_queue.h b/components/display_compositor/buffer_queue.h
index 3ae123d4759431a8c138fb603d3e554ad5b9e643..6d5a2d33b007f42523ac48a8b75d8400ea572337 100644
--- a/components/display_compositor/buffer_queue.h
+++ b/components/display_compositor/buffer_queue.h
@@ -58,7 +58,8 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
void PageFlipComplete();
void Reshape(const gfx::Size& size,
float scale_factor,
- const gfx::ColorSpace& color_space);
+ const gfx::ColorSpace& color_space,
+ bool use_stencil);
void RecreateBuffers();
@@ -77,12 +78,14 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
std::unique_ptr<gfx::GpuMemoryBuffer> buffer,
uint32_t texture,
uint32_t image,
+ uint32_t stencil,
const gfx::Rect& rect);
~AllocatedSurface();
BufferQueue* const buffer_queue;
std::unique_ptr<gfx::GpuMemoryBuffer> buffer;
const uint32_t texture;
const uint32_t image;
+ const uint32_t stencil;
gfx::Rect damage; // This is the damage for this frame from the previous.
};
@@ -108,6 +111,7 @@ class DISPLAY_COMPOSITOR_EXPORT BufferQueue {
gpu::gles2::GLES2Interface* const gl_;
gfx::Size size_;
gfx::ColorSpace color_space_;
+ bool use_stencil_ = false;
uint32_t fbo_;
size_t allocated_count_;
uint32_t texture_target_;
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | components/display_compositor/buffer_queue.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698