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

Unified Diff: cc/layers/texture_layer.h

Issue 189333003: cc: Allow pepper to avoid DCHECK but reuse gpu::Mailbox. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: baddcheck: compile Created 6 years, 9 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 | « no previous file | cc/layers/texture_layer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer.h
diff --git a/cc/layers/texture_layer.h b/cc/layers/texture_layer.h
index 6ef413cffeda3c11711bc50ded8b13ec5a1360de..009a217ae6a97cf6818d92912c8a498d9917ccbf 100644
--- a/cc/layers/texture_layer.h
+++ b/cc/layers/texture_layer.h
@@ -131,6 +131,12 @@ class CC_EXPORT TextureLayer : public Layer {
void SetTextureMailbox(const TextureMailbox& mailbox,
scoped_ptr<SingleReleaseCallback> release_callback);
+ // Use this for special cases where the same texture is used to back the
+ // TextureLayer across all frames.
+ // WARNING: DON'T ACTUALLY USE THIS WHAT YOU ARE DOING IS WRONG.
+ // TODO(danakj): Remove this when pepper doesn't need it. crbug.com/350204
+ void SetTextureMailboxWithoutReleaseCallback(const TextureMailbox& mailbox);
+
void WillModifyTexture();
virtual void SetNeedsDisplayRect(const gfx::RectF& dirty_rect) OVERRIDE;
@@ -150,7 +156,8 @@ class CC_EXPORT TextureLayer : public Layer {
void SetTextureMailboxInternal(
const TextureMailbox& mailbox,
scoped_ptr<SingleReleaseCallback> release_callback,
- bool requires_commit);
+ bool requires_commit,
+ bool allow_mailbox_reuse);
TextureLayerClient* client_;
bool uses_mailbox_;
« no previous file with comments | « no previous file | cc/layers/texture_layer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698