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

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

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: resolve android clang dbg build issue. Created 6 years, 5 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/image_manager.h
diff --git a/gpu/command_buffer/service/image_manager.h b/gpu/command_buffer/service/image_manager.h
index eadf24619d8ecb2ff5390ead5bdcd155c77140f7..0a440f9e178a67b89ae0377c38eca53240cc8971 100644
--- a/gpu/command_buffer/service/image_manager.h
+++ b/gpu/command_buffer/service/image_manager.h
@@ -23,12 +23,13 @@ class GPU_EXPORT ImageManager {
ImageManager();
~ImageManager();
+ void Destroy(bool have_context);
void AddImage(gfx::GLImage* image, int32 service_id);
void RemoveImage(int32 service_id);
gfx::GLImage* LookupImage(int32 service_id);
private:
- typedef base::hash_map<uint32, scoped_refptr<gfx::GLImage> > GLImageMap;
+ typedef base::hash_map<int32, scoped_refptr<gfx::GLImage> > GLImageMap;
GLImageMap images_;
DISALLOW_COPY_AND_ASSIGN(ImageManager);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc ('k') | gpu/command_buffer/service/image_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698