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

Unified Diff: gpu/command_buffer/service/texture_manager.h

Issue 2087663002: Simplify logic involving BackTexture. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp91
Patch Set: Fixes. Created 4 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
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/texture_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 50d55956649c47e542c2f2e8726e3a51e214efa5..0c74c4b85057e97ac057420b9503bb45c1bb9ec4 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -634,6 +634,10 @@ class GPU_EXPORT TextureRef : public base::RefCounted<TextureRef> {
GLuint service_id() const { return texture_->service_id(); }
GLint num_observers() const { return num_observers_; }
+ // When the TextureRef is destroyed, it will assume that the context has been
+ // lost, regardless of the state of the TextureManager.
+ void ForceContextLost();
+
private:
friend class base::RefCounted<TextureRef>;
friend class Texture;
@@ -648,6 +652,7 @@ class GPU_EXPORT TextureRef : public base::RefCounted<TextureRef> {
Texture* texture_;
GLuint client_id_;
GLint num_observers_;
+ bool force_context_lost_;
DISALLOW_COPY_AND_ASSIGN(TextureRef);
};
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698