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

Unified Diff: gpu/command_buffer/service/texture_definition.cc

Issue 301793003: During image destroy, delete textures only if we have a GL context. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Destroy GLImage during ContextGroup destroy Created 6 years, 7 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: gpu/command_buffer/service/texture_definition.cc
diff --git a/gpu/command_buffer/service/texture_definition.cc b/gpu/command_buffer/service/texture_definition.cc
index 24382f0da39734390ccedd940d6aac2d8551afa3..a3335294d61542e7fe36823899994f3ad7f1c23d 100644
--- a/gpu/command_buffer/service/texture_definition.cc
+++ b/gpu/command_buffer/service/texture_definition.cc
@@ -24,7 +24,7 @@ class GLImageSync : public gfx::GLImage {
const scoped_refptr<NativeImageBuffer>& buffer);
// Implement GLImage.
- virtual void Destroy() OVERRIDE;
+ virtual void Destroy(bool have_context) OVERRIDE;
virtual gfx::Size GetSize() OVERRIDE;
virtual bool BindTexImage(unsigned target) OVERRIDE;
virtual void ReleaseTexImage(unsigned target) OVERRIDE;
@@ -55,7 +55,8 @@ GLImageSync::~GLImageSync() {
buffer_->RemoveClient(this);
}
-void GLImageSync::Destroy() {}
+void GLImageSync::Destroy(bool have_context) {
+}
gfx::Size GLImageSync::GetSize() {
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698