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

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, 5 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_host.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host.cc
diff --git a/cc/trees/layer_tree_host.cc b/cc/trees/layer_tree_host.cc
index ba8aeb28b064e2f1fdea807d6f58a87c1b446ef3..876feae963f4dd8d60aeb246a252ab880574a34a 100644
--- a/cc/trees/layer_tree_host.cc
+++ b/cc/trees/layer_tree_host.cc
@@ -52,7 +52,8 @@ RendererCapabilities::RendererCapabilities()
using_offscreen_context3d(false),
max_texture_size(0),
avoid_pow2_textures(false),
- using_map_image(false) {}
+ using_map_image(false),
+ using_shared_memory_resources(false) {}
RendererCapabilities::~RendererCapabilities() {}
@@ -683,6 +684,10 @@ void LayerTreeHost::CalculateLCDTextMetricsCallback(Layer* layer) {
}
}
+bool LayerTreeHost::UsingSharedMemoryResources() {
+ return GetRendererCapabilities().using_shared_memory_resources;
+}
+
bool LayerTreeHost::UpdateLayers(Layer* root_layer,
ResourceUpdateQueue* queue) {
TRACE_EVENT1("cc", "LayerTreeHost::UpdateLayers",
« no previous file with comments | « cc/trees/layer_tree_host.h ('k') | content/browser/renderer_host/render_widget_host_view_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698