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

Unified Diff: gpu/command_buffer/common/gles2_cmd_utils.cc

Issue 1750123002: Upgrade Tex{Sub}Image{2|3}D to handle ES3 unpack parameters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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/common/gles2_cmd_utils.cc
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index cb0bd6396b2912c953fa139520320a2bc7f85a23..c6e3aa92dde67d2ab5fab7a8c6f59f052545fd1e 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -795,6 +795,10 @@ uint32_t GLES2Util::GetElementCountForUniformType(int type) {
}
}
+size_t GLES2Util::GetGLTypeSizeForTextures(uint32_t type) {
+ return static_cast<size_t>(BytesPerElement(type));
+}
+
size_t GLES2Util::GetGLTypeSizeForBuffers(uint32_t type) {
switch (type) {
case GL_BYTE:

Powered by Google App Engine
This is Rietveld 408576698