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

Unified Diff: cc/layers/texture_layer.cc

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android build Created 7 years, 1 month 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_client.h » ('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 80bd4d4b59f39227974fcc6d599fb7b790ee5afe..1d21dba058ce4d17862a9f131cd1070a49954080 100644
--- a/cc/layers/texture_layer.cc
+++ b/cc/layers/texture_layer.cc
@@ -233,10 +233,6 @@ bool TextureLayer::Update(ResourceUpdateQueue* queue,
}
} else {
texture_id_ = client_->PrepareTexture();
- DCHECK_EQ(!!texture_id_, !!client_->Context3d());
- if (client_->Context3d() &&
- client_->Context3d()->getGraphicsResetStatusARB() != GL_NO_ERROR)
- texture_id_ = 0;
updated = true;
SetNeedsPushProperties();
// The texture id needs to be removed from the active tree before the
« no previous file with comments | « no previous file | cc/layers/texture_layer_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698