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

Unified Diff: cc/texture_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/texture_draw_quad.cc
diff --git a/cc/texture_draw_quad.cc b/cc/texture_draw_quad.cc
index adce50fb648676c5c6c4637da6b047e79e3e2092..ec9e5ab4b05cb9ab61c0a93eb5b2d7b2bb67848e 100644
--- a/cc/texture_draw_quad.cc
+++ b/cc/texture_draw_quad.cc
@@ -27,7 +27,7 @@ void TextureDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
bool needs_blending = vertex_opacity[0] != 1.0f || vertex_opacity[1] != 1.0f
|| vertex_opacity[2] != 1.0f || vertex_opacity[3] != 1.0f;
DrawQuad::SetAll(shared_quad_state, DrawQuad::TEXTURE_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->resource_id = resource_id;
this->premultiplied_alpha = premultiplied_alpha;
this->uv_rect = uv_rect;
@@ -45,7 +45,7 @@ void TextureDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
const gfx::RectF& uv_rect,
const float vertex_opacity[4], bool flipped) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::TEXTURE_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->resource_id = resource_id;
this->premultiplied_alpha = premultiplied_alpha;
this->uv_rect = uv_rect;

Powered by Google App Engine
This is Rietveld 408576698