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

Unified Diff: cc/io_surface_draw_quad.cc

Issue 11649005: cc: Support anti-aliasing for solid color layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and add DrawQuad::AntiAliasing struct. Created 7 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
Index: cc/io_surface_draw_quad.cc
diff --git a/cc/io_surface_draw_quad.cc b/cc/io_surface_draw_quad.cc
index 4851df1f626f14d99c372e067a0e464ac7029b4b..11da404b950e83b8f68e88c4c3a646ba4857aa92 100644
--- a/cc/io_surface_draw_quad.cc
+++ b/cc/io_surface_draw_quad.cc
@@ -26,7 +26,7 @@ void IOSurfaceDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect visible_rect = rect;
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::IO_SURFACE_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->io_surface_size = io_surface_size;
this->io_surface_texture_id = io_surface_texture_id;
this->orientation = orientation;
@@ -41,7 +41,7 @@ void IOSurfaceDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned io_surface_texture_id,
Orientation orientation) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::IO_SURFACE_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->io_surface_size = io_surface_size;
this->io_surface_texture_id = io_surface_texture_id;
this->orientation = orientation;

Powered by Google App Engine
This is Rietveld 408576698