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

Unified Diff: cc/picture_layer_impl.cc

Issue 11829047: cc: Move anti-aliasing decision to parent compositor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add crbug url 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
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/picture_layer_impl.cc
diff --git a/cc/picture_layer_impl.cc b/cc/picture_layer_impl.cc
index de06993e83da725b8a3382a3f4b3aaff62662c25..028f8da6bce3e0be4c029712940f165cd5d041cf 100644
--- a/cc/picture_layer_impl.cc
+++ b/cc/picture_layer_impl.cc
@@ -48,13 +48,6 @@ void PictureLayerImpl::appendQuads(QuadSink& quadSink,
SharedQuadState* sharedQuadState =
quadSink.useSharedQuadState(createSharedQuadState());
- bool clipped = false;
- gfx::QuadF target_quad = MathUtil::mapQuad(
- drawTransform(),
- gfx::QuadF(rect),
- clipped);
- bool isAxisAlignedInTarget = !clipped && target_quad.IsRectilinear();
- bool useAA = !isAxisAlignedInTarget;
if (showDebugBorders()) {
for (PictureLayerTilingSet::Iterator iter(&tilings_,
@@ -131,10 +124,10 @@ void PictureLayerImpl::appendQuads(QuadSink& quadSink,
texture_rect,
iter.texture_size(),
iter->contents_swizzled(),
- outside_left_edge && useAA,
- outside_top_edge && useAA,
- outside_right_edge && useAA,
- outside_bottom_edge && useAA);
+ outside_left_edge,
+ outside_top_edge,
+ outside_right_edge,
+ outside_bottom_edge);
quadSink.append(quad.PassAs<DrawQuad>(), appendQuadsData);
if (!seen_tilings.size() || seen_tilings.back() != iter.CurrentTiling())
« no previous file with comments | « cc/gl_renderer.cc ('k') | cc/tiled_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698