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

Unified Diff: cc/trees/layer_tree_host.cc

Issue 17859002: Allow WebExternalTextureLayers to receive a bitmap along with a mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index 8d93426f32ea842a2d7d437efc3905d12adae566..37fd5783294939dc0240ee4c04ab9f5ef38b2be4 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -123,6 +123,10 @@ bool LayerTreeHost::InitializeProxy(scoped_ptr<Proxy> proxy) {
if (!output_surface)
return false;
+ using_gl_renderer_ =
+ output_surface->context3d() ||
+ output_surface->capabilities().deferred_gl_initialization;
piman 2013/07/02 04:00:09 Note: during the lifetime of the LTH, we may recre
jbauman 2013/07/02 20:16:19 Ok, I'm now passing it through RendererCapabilitie
+
proxy_ = proxy.Pass();
proxy_->Start(output_surface.Pass());
return true;
@@ -682,6 +686,8 @@ void LayerTreeHost::CalculateLCDTextMetricsCallback(Layer* layer) {
}
}
+bool LayerTreeHost::UsingGLRenderer() { return using_gl_renderer_; }
+
void LayerTreeHost::UpdateLayers(Layer* root_layer,
ResourceUpdateQueue* queue) {
TRACE_EVENT1("cc", "LayerTreeHost::UpdateLayers",

Powered by Google App Engine
This is Rietveld 408576698