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 |