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 a6cf1e9dedd30d06f07b3765cd227b83989714fb..7b829f9414154fdbc5ca3b06052c27f6cdfb3550 100644 |
--- a/content/renderer/android/synchronous_compositor_output_surface.cc |
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc |
@@ -164,8 +164,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 |