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

Unified Diff: cc/layers/texture_layer.cc

Issue 151093005: cc: Update Main RendererCapabilities on DeferredInitialize (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECK in TextureLayer::OnOutputSurfaceCreated Created 6 years, 10 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/layers/texture_layer.h ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer.cc
diff --git a/cc/layers/texture_layer.cc b/cc/layers/texture_layer.cc
index bc6b58a0342145bce3130c02d6983591f33855f9..0f683695feb843411c5cfa7a297ec840b25bdec3 100644
--- a/cc/layers/texture_layer.cc
+++ b/cc/layers/texture_layer.cc
@@ -276,6 +276,12 @@ void TextureLayer::PushPropertiesTo(LayerImpl* layer) {
}
}
+void TextureLayer::OnOutputSurfaceCreated() {
+ if (uses_mailbox_) {
+ holder_ref_.reset();
boliu 2014/02/13 20:14:39 I removed the DCHECK for now. This broke context_l
danakj 2014/02/14 17:59:11 Maybe we can do this without adding more LayerAPI.
boliu 2014/02/14 18:44:42 RendererCapabilities is used in the layer_tree_hos
+ }
+}
+
Region TextureLayer::VisibleContentOpaqueRegion() const {
if (contents_opaque())
return visible_content_rect();
« no previous file with comments | « cc/layers/texture_layer.h ('k') | cc/layers/texture_layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698