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

Unified Diff: cc/stream_video_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/stream_video_draw_quad.cc
diff --git a/cc/stream_video_draw_quad.cc b/cc/stream_video_draw_quad.cc
index 91cf3e2ff1bf252081bf32b6ade688c7009c1b79..611875e9d7915a9cfd1b650232b96491580029cb 100644
--- a/cc/stream_video_draw_quad.cc
+++ b/cc/stream_video_draw_quad.cc
@@ -22,7 +22,7 @@ void StreamVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect visible_rect = rect;
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::STREAM_VIDEO_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->texture_id = texture_id;
this->matrix = matrix;
}
@@ -35,7 +35,7 @@ void StreamVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
unsigned texture_id,
const gfx::Transform& matrix) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::STREAM_VIDEO_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->texture_id = texture_id;
this->matrix = matrix;
}

Powered by Google App Engine
This is Rietveld 408576698