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

Unified Diff: android_webview/browser/hardware_renderer.cc

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 years, 3 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
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() {

Powered by Google App Engine
This is Rietveld 408576698