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

Unified Diff: cc/test/fake_picture_pile_impl.cc

Issue 126343003: Revert of cc: Combine analysis and raster (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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/test/fake_picture_pile_impl.h ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_pile_impl.cc
diff --git a/cc/test/fake_picture_pile_impl.cc b/cc/test/fake_picture_pile_impl.cc
index ce3e7e4dfa6f3d277e968a3952fa6295531b6535..bc751edbce2a06db93ab11eca671c3311490c63a 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::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
« no previous file with comments | « cc/test/fake_picture_pile_impl.h ('k') | cc/test/skia_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698