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

Unified Diff: components/html_viewer/web_layer_tree_view_impl.cc

Issue 1298143003: Revert of Re-land: cc: Use worker context for one-copy tile initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | content/browser/compositor/browser_compositor_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/web_layer_tree_view_impl.cc
diff --git a/components/html_viewer/web_layer_tree_view_impl.cc b/components/html_viewer/web_layer_tree_view_impl.cc
index 8acb806348efc508ea14e4a115809d2aee803e97..9d54f7e8a69097ee655637897219c9acfa22195b 100644
--- a/components/html_viewer/web_layer_tree_view_impl.cc
+++ b/components/html_viewer/web_layer_tree_view_impl.cc
@@ -63,16 +63,12 @@
if (surface && gpu_service) {
mojo::CommandBufferPtr cb;
- mojo::CommandBufferPtr worker_cb;
gpu_service->CreateOffscreenGLES2Context(GetProxy(&cb));
- gpu_service->CreateOffscreenGLES2Context(GetProxy(&worker_cb));
scoped_refptr<cc::ContextProvider> context_provider(
new mojo::ContextProviderMojo(cb.PassInterface().PassHandle()));
- scoped_refptr<cc::ContextProvider> worker_context_provider(
- new mojo::ContextProviderMojo(worker_cb.PassInterface().PassHandle()));
- output_surface_.reset(new mojo::OutputSurfaceMojo(
- this, context_provider, worker_context_provider,
- surface.PassInterface().PassHandle()));
+ output_surface_.reset(
+ new mojo::OutputSurfaceMojo(this, context_provider,
+ surface.PassInterface().PassHandle()));
}
layer_tree_host_->SetLayerTreeHostClientReady();
}
« no previous file with comments | « cc/trees/layer_tree_settings.cc ('k') | content/browser/compositor/browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698