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

Unified Diff: cc/test/fake_picture_layer_impl.h

Issue 2565643002: [5/5] Add translated rasterization for PictureLayerImpl (Closed)
Patch Set: rebase && add unittests for slot conflict resolution and raster translation update policy Created 3 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
Index: cc/test/fake_picture_layer_impl.h
diff --git a/cc/test/fake_picture_layer_impl.h b/cc/test/fake_picture_layer_impl.h
index c93900a068c1be4160c104636dd39887145bec82..3b4524fd027cde49f6854928a70a17e4636b59e1 100644
--- a/cc/test/fake_picture_layer_impl.h
+++ b/cc/test/fake_picture_layer_impl.h
@@ -114,7 +114,8 @@ class FakePictureLayerImpl : public PictureLayerImpl {
using PictureLayerImpl::MaximumTilingContentsScale;
void AddTilingUntilNextDraw(float scale) {
- last_append_quads_tilings_.push_back(AddTiling(scale));
+ last_append_quads_tilings_.push_back(
+ AddTiling(ScaleTranslate2d(scale, gfx::Vector2dF())));
}
float raster_page_scale() const { return raster_page_scale_; }

Powered by Google App Engine
This is Rietveld 408576698