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

Unified Diff: cc/test/fake_content_layer_client.cc

Issue 1409713002: cc: Remove cc::ContentLayerClient::PaintContents(SkCanvas*, ...). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: restore comment Created 5 years, 2 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_content_layer_client.h ('k') | cc/test/solid_color_content_layer_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_content_layer_client.cc
diff --git a/cc/test/fake_content_layer_client.cc b/cc/test/fake_content_layer_client.cc
index eb95c38323434e98ef1db8c07359986773f0c019..bfa7c19b36ab6ff22683d1ef01a30aa21400a326 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -35,39 +35,6 @@ FakeContentLayerClient::FakeContentLayerClient()
FakeContentLayerClient::~FakeContentLayerClient() {
}
-void FakeContentLayerClient::PaintContents(
- SkCanvas* canvas,
- const gfx::Rect& paint_rect,
- PaintingControlSetting painting_control) {
- last_canvas_ = canvas;
- last_painting_control_ = painting_control;
-
- canvas->clipRect(gfx::RectToSkRect(paint_rect));
- for (RectPaintVector::const_iterator it = draw_rects_.begin();
- it != draw_rects_.end(); ++it) {
- const gfx::RectF& draw_rect = it->first;
- const SkPaint& paint = it->second;
- canvas->drawRect(gfx::RectFToSkRect(draw_rect), paint);
- }
-
- for (ImageVector::const_iterator it = draw_images_.begin();
- it != draw_images_.end(); ++it) {
- canvas->drawImage(it->image.get(), it->point.x(), it->point.y(),
- &it->paint);
- }
-
- if (fill_with_nonsolid_color_) {
- gfx::Rect draw_rect = paint_rect;
- bool red = true;
- while (!draw_rect.IsEmpty()) {
- SkPaint paint;
- paint.setColor(red ? SK_ColorRED : SK_ColorBLUE);
- canvas->drawIRect(gfx::RectToSkIRect(draw_rect), paint);
- draw_rect.Inset(1, 1);
- }
- }
-}
-
scoped_refptr<DisplayItemList>
FakeContentLayerClient::PaintContentsToDisplayList(
const gfx::Rect& clip,
« no previous file with comments | « cc/test/fake_content_layer_client.h ('k') | cc/test/solid_color_content_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698