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

Unified Diff: cc/output/direct_renderer.h

Issue 24239006: cc: Don't discard framebuffer when using partial swaps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 3 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: cc/output/direct_renderer.h
diff --git a/cc/output/direct_renderer.h b/cc/output/direct_renderer.h
index efa34cf9d4d80d3cdb3a4da43d0d4300050aca70..3b50404396478313d6a0f35e7e51eb7a7c7488a0 100644
--- a/cc/output/direct_renderer.h
+++ b/cc/output/direct_renderer.h
@@ -118,7 +118,10 @@ class CC_EXPORT DirectRenderer : public Renderer {
gfx::Rect target_rect) = 0;
virtual void SetDrawViewport(gfx::Rect window_space_viewport) = 0;
virtual void SetScissorTestRect(gfx::Rect scissor_rect) = 0;
- virtual void ClearFramebuffer(DrawingFrame* frame) = 0;
+ virtual void DiscardPixels(bool has_external_stencil_test,
+ bool redraw_rect_covers_full_surface) = 0;
+ virtual void ClearFramebuffer(DrawingFrame* frame,
+ bool has_external_stencil_test) = 0;
virtual void DoDrawQuad(DrawingFrame* frame, const DrawQuad* quad) = 0;
virtual void BeginDrawingFrame(DrawingFrame* frame) = 0;
virtual void FinishDrawingFrame(DrawingFrame* frame) = 0;

Powered by Google App Engine
This is Rietveld 408576698