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

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

Issue 1950233002: Fix a bug in texture validation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « gpu/command_buffer/service/test_helper.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 e56549b6047190d467c17099fcb1370883c0dd45..c5a5c052514fdb53f115b4b87fdfec29a217647e 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -716,6 +716,7 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
GLsizei max_cube_map_texture_size,
GLsizei max_rectangle_texture_size,
GLsizei max_3d_texture_size,
+ GLsizei max_array_texture_layers,
bool use_default_textures);
~TextureManager() override;
@@ -761,6 +762,10 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
}
}
+ GLsizei max_array_texture_layers() const {
+ return max_array_texture_layers_;
+ }
+
// Returns the maxium number of levels a texture of the given size can have.
static GLsizei ComputeMipMapCount(GLenum target,
GLsizei width,
@@ -1111,6 +1116,7 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
GLsizei max_cube_map_texture_size_;
GLsizei max_rectangle_texture_size_;
GLsizei max_3d_texture_size_;
+ GLsizei max_array_texture_layers_;
GLint max_levels_;
GLint max_cube_map_levels_;
GLint max_3d_levels_;
« no previous file with comments | « gpu/command_buffer/service/test_helper.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698