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

Unified Diff: cc/playback/draw_image.h

Issue 2107883003: Revert of Add display-resolution caching to GPU IDC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@drt
Patch Set: Created 4 years, 6 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 | « no previous file | cc/test/geometry_test_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/playback/draw_image.h
diff --git a/cc/playback/draw_image.h b/cc/playback/draw_image.h
index 6323a636f6412f02eb803cf0b65c02cbf2cb1030..4daa16075debdfcb41330afbdc428bbcb8f9ea7b 100644
--- a/cc/playback/draw_image.h
+++ b/cc/playback/draw_image.h
@@ -34,12 +34,8 @@
const SkMatrix& matrix() const { return matrix_; }
DrawImage ApplyScale(float scale) const {
- return ApplyScale(SkSize::Make(scale, scale));
- }
-
- DrawImage ApplyScale(const SkSize& scale) const {
SkMatrix scaled_matrix = matrix_;
- scaled_matrix.postScale(scale.width(), scale.height());
+ scaled_matrix.postScale(scale, scale);
return DrawImage(image_, src_rect_, filter_quality_, scaled_matrix);
}
« no previous file with comments | « no previous file | cc/test/geometry_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698