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

Unified Diff: cc/yuv_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/yuv_video_draw_quad.cc
diff --git a/cc/yuv_video_draw_quad.cc b/cc/yuv_video_draw_quad.cc
index dcb4369311416ddde93db7b6c21640dcc193e3fc..82fbdeac6bd6f58d5c21b60fe3eaf122d28fbd1f 100644
--- a/cc/yuv_video_draw_quad.cc
+++ b/cc/yuv_video_draw_quad.cc
@@ -25,7 +25,7 @@ void YUVVideoDrawQuad::SetNew(const SharedQuadState* shared_quad_state,
gfx::Rect visible_rect = rect;
bool needs_blending = false;
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->tex_scale = tex_scale;
this->y_plane = y_plane;
this->u_plane = u_plane;
@@ -42,7 +42,7 @@ void YUVVideoDrawQuad::SetAll(const SharedQuadState* shared_quad_state,
const VideoLayerImpl::FramePlane& u_plane,
const VideoLayerImpl::FramePlane& v_plane) {
DrawQuad::SetAll(shared_quad_state, DrawQuad::YUV_VIDEO_CONTENT, rect,
- opaque_rect, visible_rect, needs_blending);
+ opaque_rect, visible_rect, needs_blending, AntiAliasing());
this->tex_scale = tex_scale;
this->y_plane = y_plane;
this->u_plane = u_plane;

Powered by Google App Engine
This is Rietveld 408576698