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

Unified Diff: cc/resources/bitmap_skpicture_content_layer_updater.cc

Issue 567743003: Fix bad scaling in TiledLayer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge to trunk Created 6 years, 3 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/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/content_layer_updater.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/bitmap_skpicture_content_layer_updater.cc
diff --git a/cc/resources/bitmap_skpicture_content_layer_updater.cc b/cc/resources/bitmap_skpicture_content_layer_updater.cc
index a776d235c1d26af03d25b73fcf5a9ec24336e1d1..06b65639a83fed0f6377f6bb836717ba9068e02f 100644
--- a/cc/resources/bitmap_skpicture_content_layer_updater.cc
+++ b/cc/resources/bitmap_skpicture_content_layer_updater.cc
@@ -72,8 +72,8 @@ void BitmapSkPictureContentLayerUpdater::PaintContentsRect(
if (!canvas)
return;
// Translate the origin of content_rect to that of source_rect.
- canvas->translate(content_rect().x() - source_rect.x(),
- content_rect().y() - source_rect.y());
+ canvas->translate(paint_rect().x() - source_rect.x(),
+ paint_rect().y() - source_rect.y());
base::TimeTicks start_time =
rendering_stats_instrumentation_->StartRecording();
DrawPicture(canvas);
« no previous file with comments | « cc/resources/bitmap_content_layer_updater.cc ('k') | cc/resources/content_layer_updater.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698