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

Unified Diff: cc/debug_border_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/debug_border_draw_quad.cc
diff --git a/cc/debug_border_draw_quad.cc b/cc/debug_border_draw_quad.cc
index fba8b929d1d79f6863b931c1eaedee026c0afbd2..07a2f6046fc1f1a9018fc14119a1d55c287fdab1 100644
--- a/cc/debug_border_draw_quad.cc
+++ b/cc/debug_border_draw_quad.cc
@@ -25,7 +25,7 @@ void DebugBorderDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect visible_rect = rect;
bool needs_blending = SkColorGetA(color) < 255;
DrawQuad::SetAll(shared_quad_state, DrawQuad::DEBUG_BORDER, rect, opaque_rect,
- visible_rect, needs_blending);
+ visible_rect, needs_blending, AntiAliasing());
this->color = color;
this->width = width;
}
@@ -38,7 +38,7 @@ void DebugBorderDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
SkColor color,
int width) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::DEBUG_BORDER, rect, opaque_rect,
- visible_rect, needs_blending);
+ visible_rect, needs_blending, AntiAliasing());
this->color = color;
this->width = width;
}

Powered by Google App Engine
This is Rietveld 408576698