summaryrefslogtreecommitdiffstats
path: root/cc/trees
diff options
context:
space:
mode:
authordanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 20:21:14 +0000
committerdanakj@chromium.org <danakj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-11 20:21:14 +0000
commit6c629c06c993e7f6f1dba784f3b06082f6d3b67c (patch)
treecb65aa572369ea56813d7762b4aac14b1ff4128e /cc/trees
parent986aa787e13f7231e299d32eaae62502027c7546 (diff)
downloadchromium_src-6c629c06c993e7f6f1dba784f3b06082f6d3b67c.zip
chromium_src-6c629c06c993e7f6f1dba784f3b06082f6d3b67c.tar.gz
chromium_src-6c629c06c993e7f6f1dba784f3b06082f6d3b67c.tar.bz2
cc: Enable AntiAliasing for sub-pixel translations in software renderer
While here, make the blue/yellow tests horizontal instead of vertical stripes, so that we can detect vertical flipping issues. Tests: RendererPixelTest.EnlargedRenderPassTextureWithAntiAliasing R=enne BUG=247782 NOTRY=true Review URL: https://chromiumcodereview.appspot.com/16634015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/trees')
-rw-r--r--cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
index f1b0664..eb2e28c 100644
--- a/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
+++ b/cc/trees/layer_tree_host_pixeltest_on_demand_raster.cc
@@ -70,16 +70,16 @@ class BlueYellowLayerClient : public ContentLayerClient {
SkPaint paint;
paint.setColor(SK_ColorBLUE);
- canvas->drawRect(SkRect::MakeWH(layer_rect_.width() / 2,
- layer_rect_.height()),
+ canvas->drawRect(SkRect::MakeWH(layer_rect_.width(),
+ layer_rect_.height() / 2),
paint);
paint.setColor(SK_ColorYELLOW);
canvas->drawRect(
- SkRect::MakeXYWH(layer_rect_.width() / 2,
- 0,
- layer_rect_.width() / 2,
- layer_rect_.height()),
+ SkRect::MakeXYWH(0,
+ layer_rect_.height() / 2,
+ layer_rect_.width(),
+ layer_rect_.height() / 2),
paint);
}
@@ -87,7 +87,7 @@ class BlueYellowLayerClient : public ContentLayerClient {
gfx::Rect layer_rect_;
};
-TEST_F(LayerTreeHostOnDemandRasterPixelTest, DISABLED_RasterPictureLayer) {
+TEST_F(LayerTreeHostOnDemandRasterPixelTest, RasterPictureLayer) {
// Use multiple colors in a single layer to prevent bypassing on-demand
// rasterization if a single solid color is detected in picture analysis.
gfx::Rect layer_rect(200, 200);