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

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

Issue 224763002: Remove default textures in (!bind_generates_resource) context groups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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_manager.h
diff --git a/gpu/command_buffer/service/texture_manager.h b/gpu/command_buffer/service/texture_manager.h
index 214122eccc4641cc8e595f078edd7dfd4ab5639f..ced56bb217d24605fabef1a543cfe46c0c4d5020 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -488,6 +488,10 @@ class GPU_EXPORT TextureManager {
framebuffer_manager_ = manager;
}
+ void set_use_default_textures(bool use_default_textures) {
+ use_default_textures_ = use_default_textures;
+ }
+
// Init the texture manager.
bool Initialize();
@@ -774,6 +778,8 @@ class GPU_EXPORT TextureManager {
GLint max_levels_;
GLint max_cube_map_levels_;
+ bool use_default_textures_;
+
int num_unrenderable_textures_;
int num_unsafe_textures_;
int num_uncleared_mips_;

Powered by Google App Engine
This is Rietveld 408576698