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

Unified Diff: cc/layers/texture_layer.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: use ShareMemory path 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/layers/texture_layer.cc
diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc
index a6022dd2408faf496db47913187e4d4864f0bf70..6fb4c96b44215ca60b002112306edb35c6adf7c0 100644
--- a/cc/layers/texture_layer.cc
+++ b/cc/layers/texture_layer.cc
@@ -159,6 +159,10 @@ void TextureLayer::WillModifyTexture() {
}
}
+bool TextureLayer::MustUseSharedMemory() {
+ return !layer_tree_host()->UsingGLRenderer();
piman 2013/07/01 22:45:01 note: layer_tree_host() is NULL when the layer is
jbauman 2013/07/02 00:00:40 Ok, modified PrepareTextureMailbox to do this inst
+}
+
void TextureLayer::SetNeedsDisplayRect(const gfx::RectF& dirty_rect) {
Layer::SetNeedsDisplayRect(dirty_rect);

Powered by Google App Engine
This is Rietveld 408576698