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

Unified Diff: cc/base/scale_translate2d.cc

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: combined 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
« no previous file with comments | « cc/base/scale_translate2d.h ('k') | cc/benchmarks/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/scale_translate2d.cc
diff --git a/cc/base/scale_translate2d.cc b/cc/base/scale_translate2d.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a6d2a1a49143f7629ce24a5c2c039ca93ea137fa
--- /dev/null
+++ b/cc/base/scale_translate2d.cc
@@ -0,0 +1,16 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/base/scale_translate2d.h"
+
+#include "third_party/skia/include/core/SkCanvas.h"
+
+namespace cc {
+
+void ScaleTranslate2d::ApplyToCanvas(SkCanvas* canvas) const {
+ canvas->translate(translation_.x(), translation_.y());
+ canvas->scale(scale_, scale_);
+}
+
+} // namespace cc
« no previous file with comments | « cc/base/scale_translate2d.h ('k') | cc/benchmarks/rasterize_and_record_benchmark_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698