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

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

Issue 2695833003: Revert of Select correct copy method for DoCopySubTexture (Closed)
Patch Set: Created 3 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/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 6eb9b8e0827283f571e4fe4879ce80b9f9a90feb..7d97aeb6c505b25dbf8e8dabd96b828852296661 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -1309,18 +1309,6 @@
}
}
-GLint GLES2Util::GetColorEncodingFromInternalFormat(uint32_t internalformat) {
- switch (internalformat) {
- case GL_SRGB_EXT:
- case GL_SRGB_ALPHA_EXT:
- case GL_SRGB8:
- case GL_SRGB8_ALPHA8:
- return GL_SRGB;
- default:
- return GL_LINEAR;
- }
-}
-
void GLES2Util::GetColorFormatComponentSizes(
uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a) {
DCHECK(r && g && b && a);

Powered by Google App Engine
This is Rietveld 408576698