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

Unified Diff: cc/test/fake_content_layer_client.cc

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 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/data/mask_of_layer_with_blend.png ('k') | cc/test/ordered_texture_map.cc » ('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 ab958e97bdc572e06e1bbd0f1c4ff79118d50098..ffef555e49cbaf94aa7791e1f8e870d0f29c1ea3 100644
--- a/cc/test/fake_content_layer_client.cc
+++ b/cc/test/fake_content_layer_client.cc
@@ -71,8 +71,8 @@ FakeContentLayerClient::PaintContentsToDisplayList(
const SkPaint& paint = it->second;
canvas =
skia::SharePtr(recorder.beginRecording(gfx::RectFToSkRect(draw_rect)));
- canvas->drawRectCoords(0.f, 0.f, draw_rect.width(), draw_rect.height(),
- paint);
+ canvas->drawRectCoords(draw_rect.x(), draw_rect.y(), draw_rect.width(),
+ draw_rect.height(), paint);
picture = skia::AdoptRef(recorder.endRecording());
list->AppendItem(DrawingDisplayItem::Create(picture));
}
@@ -81,7 +81,7 @@ FakeContentLayerClient::PaintContentsToDisplayList(
it != draw_bitmaps_.end(); ++it) {
canvas = skia::SharePtr(
recorder.beginRecording(it->bitmap.width(), it->bitmap.height()));
- canvas->drawBitmap(it->bitmap, 0.f, 0.f, &it->paint);
+ canvas->drawBitmap(it->bitmap, it->point.x(), it->point.y(), &it->paint);
picture = skia::AdoptRef(recorder.endRecording());
list->AppendItem(DrawingDisplayItem::Create(picture));
}
« no previous file with comments | « cc/test/data/mask_of_layer_with_blend.png ('k') | cc/test/ordered_texture_map.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698