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

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

Issue 2680703003: Reland of Select correct copy method for DoCopySubTexture (Closed)
Patch Set: fix perf regression on chromeos 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.h
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.h b/gpu/command_buffer/common/gles2_cmd_utils.h
index 8d0f16baba0fa205bdfa407f56a41ed171c6cd35..969a7245060578b393d50448dbb026afce99cd0c 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils.h
@@ -243,8 +243,11 @@ class GLES2_UTILS_EXPORT GLES2Util {
static bool IsIntegerFormat(uint32_t internal_format);
static bool IsFloatFormat(uint32_t internal_format);
static uint32_t ConvertToSizedFormat(uint32_t format, uint32_t type);
-
static bool IsSizedColorFormat(uint32_t internal_format);
+
+ // Infer color encoding from internalformat
+ static int GetColorEncodingFromInternalFormat(uint32_t internalformat);
+
static void GetColorFormatComponentSizes(
uint32_t internal_format, uint32_t type, int* r, int* g, int* b, int* a);

Powered by Google App Engine
This is Rietveld 408576698