Index: android_webview/browser/hardware_renderer.cc |
diff --git a/android_webview/browser/hardware_renderer.cc b/android_webview/browser/hardware_renderer.cc |
index a905cef41bac7298ac33f731d1fd414fff9f6643..60f48af1dac3f3a2b5e91238ab07146d22005e0e 100644 |
--- a/android_webview/browser/hardware_renderer.cc |
+++ b/android_webview/browser/hardware_renderer.cc |
@@ -245,8 +245,7 @@ void HardwareRenderer::DrawGL(bool stencil_enabled, |
gl_surface_->ResetBackingFrameBufferObject(); |
} |
-scoped_ptr<cc::OutputSurface> HardwareRenderer::CreateOutputSurface( |
- bool fallback) { |
+void HardwareRenderer::RequestNewOutputSurface(bool fallback) { |
// Android webview does not support losing output surface. |
DCHECK(!fallback); |
scoped_refptr<cc::ContextProvider> context_provider = |
@@ -255,7 +254,8 @@ scoped_ptr<cc::OutputSurface> HardwareRenderer::CreateOutputSurface( |
scoped_ptr<ParentOutputSurface> output_surface_holder( |
new ParentOutputSurface(context_provider)); |
output_surface_ = output_surface_holder.get(); |
- return output_surface_holder.PassAs<cc::OutputSurface>(); |
+ layer_tree_host_->SetOutputSurface( |
+ output_surface_holder.PassAs<cc::OutputSurface>()); |
} |
void HardwareRenderer::UnusedResourcesAreAvailable() { |