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

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 5e19eb3eb3c8acb70f68dba1d64863f6bb806297..be32a54f559fba87813d8cde2e9ce34e2ad1dba2 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -124,6 +124,8 @@ bool LayerTreeHost::InitializeProxy(scoped_ptr<Proxy> proxy) {
if (!output_surface)
return false;
+ using_software_renderer_ = !output_surface->context3d();
danakj 2013/06/26 19:09:57 This would be wrong on WebView when they defer ini
boliu 2013/06/28 01:27:29 For android webview, we should strive to make GL m
+
proxy_ = proxy.Pass();
proxy_->Start(output_surface.Pass());
return true;
@@ -707,6 +709,10 @@ void LayerTreeHost::IncrementLCDTextMetrics(
}
}
+bool LayerTreeHost::UsingSoftwareRenderer() {
+ return using_software_renderer_;
+}
+
void LayerTreeHost::UpdateLayers(Layer* root_layer,
ResourceUpdateQueue* queue) {
TRACE_EVENT1("cc", "LayerTreeHost::UpdateLayers",

Powered by Google App Engine
This is Rietveld 408576698