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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.cc

Issue 1432443004: Remove SkDevice and SkBaseDevice outside skia/ext/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove commented-out code Created 5 years, 1 month 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: content/renderer/android/synchronous_compositor_output_surface.cc
diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc
index 9a48dff351830d12939eb46b719ce81f52110cd6..ee1b94bf351897a2c420cb6dc94b5836cee90e74 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.cc
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc
@@ -165,8 +165,8 @@ SynchronousCompositorOutputSurface::DemandDrawSw(SkCanvas* canvas) {
gfx::Transform transform(gfx::Transform::kSkipInitialization);
transform.matrix() = canvas->getTotalMatrix(); // Converts 3x3 matrix to 4x4.
- surface_size_ = gfx::Size(canvas->getDeviceSize().width(),
- canvas->getDeviceSize().height());
+ surface_size_ = gfx::Size(canvas->getBaseLayerSize().width(),
+ canvas->getBaseLayerSize().height());
// Pass in the cached hw viewport and transform for tile priority to avoid
// tile thrashing when the WebView is alternating between hardware and

Powered by Google App Engine
This is Rietveld 408576698