summaryrefslogtreecommitdiffstats
path: root/cc/test/fake_picture_pile_impl.cc
diff options
context:
space:
mode:
authorenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-08 02:03:13 +0000
committerenne@chromium.org <enne@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-08 02:03:13 +0000
commit1d801997a2e91f8c36bdaf31f9d2a006c8f3580c (patch)
tree9bd80349cd172551f82400ee8c200f774ed60c2b /cc/test/fake_picture_pile_impl.cc
parentec4a71c1110d8f6ae0a517b2446b902a32e1d839 (diff)
downloadchromium_src-1d801997a2e91f8c36bdaf31f9d2a006c8f3580c.zip
chromium_src-1d801997a2e91f8c36bdaf31f9d2a006c8f3580c.tar.gz
chromium_src-1d801997a2e91f8c36bdaf31f9d2a006c8f3580c.tar.bz2
Revert of https://codereview.chromium.org/63443003/
Reason for revert: Caused a 30% rasterization regression TBR=reveman@chromium.org,senorblanco@chromium.org,vangelis@google.com,reed@google.com BUG=310796,332137 Review URL: https://codereview.chromium.org/126343003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@243466 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test/fake_picture_pile_impl.cc')
-rw-r--r--cc/test/fake_picture_pile_impl.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index ce3e7e4..bc751ed 100644
--- a/cc/test/fake_picture_pile_impl.cc
+++ b/cc/test/fake_picture_pile_impl.cc
@@ -9,7 +9,6 @@
#include "cc/test/impl_side_painting_settings.h"
#include "testing/gtest/include/gtest/gtest.h"
-#include "ui/gfx/skia_util.h"
namespace cc {
@@ -108,26 +107,4 @@ void FakePicturePileImpl::RerecordPile() {
}
}
-void FakePicturePileImpl::AnalyzeInRect(gfx::Rect content_rect,
- float contents_scale,
- Analysis* analysis) {
- // Create and raster to a bitmap of content_rect size, even though the
- // analysis_rect may be smaller to simulate edge tiles where recorded content
- // doesn't cover the entire content_rect.
- SkBitmap empty_bitmap;
- empty_bitmap.setConfig(SkBitmap::kNo_Config,
- content_rect.width(),
- content_rect.height());
-
- gfx::Rect analysis_rect(
- AnalysisRectForRaster(content_rect, contents_scale));
- skia::AnalysisDevice device(empty_bitmap, gfx::RectToSkRect(analysis_rect));
- skia::AnalysisCanvas canvas(&device);
-
- RasterDirect(&canvas, content_rect, contents_scale, NULL);
-
- analysis->is_solid_color = canvas.GetColorIfSolid(&analysis->solid_color);
- analysis->has_text = canvas.HasText();
-}
-
} // namespace cc