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

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

Issue 1684343002: Upgrade TexSubImage3D and TexStorage3D. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 1f1e58d68ad9a86c8571040b70b85f3e10ee46ff..03b4598b6c478aa973ece126d3741d00f21587bf 100644
--- a/gpu/command_buffer/service/texture_manager.h
+++ b/gpu/command_buffer/service/texture_manager.h
@@ -910,17 +910,24 @@ class GPU_EXPORT TextureManager : public base::trace_event::MemoryDumpProvider {
const DoTexImageArguments& args);
struct DoTexSubImageArguments {
+ enum TexSubImageCommandType {
+ kTexSubImage2D,
+ kTexSubImage3D,
+ };
+
GLenum target;
GLint level;
GLint xoffset;
GLint yoffset;
+ GLint zoffset;
GLsizei width;
GLsizei height;
+ GLsizei depth;
GLenum format;
GLenum type;
const void* pixels;
uint32_t pixels_size;
- // TODO(kkinnunen): currently this is used only for TexSubImage2D.
+ TexSubImageCommandType command_type;
};
bool ValidateTexSubImage(
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_unittest_textures.cc ('k') | gpu/command_buffer/service/texture_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698