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

Unified Diff: gpu/command_buffer/service/gpu_switches.cc

Issue 793693003: Tile Compression (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/gpu_switches.h ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/gpu_switches.cc
diff --git a/gpu/command_buffer/service/gpu_switches.cc b/gpu/command_buffer/service/gpu_switches.cc
index 7298140cfbcb152d23533abcdc5ac8c6e6d8b480..1c27484acb18679bf328cf1f3b24575ca5884330 100644
--- a/gpu/command_buffer/service/gpu_switches.cc
+++ b/gpu/command_buffer/service/gpu_switches.cc
@@ -68,6 +68,17 @@ const char kEnableThreadedTextureMailboxes[] =
// Enable OpenGL ES 3 APIs without proper service side validation.
const char kEnableUnsafeES3APIs[] = "enable-unsafe-es3-apis";
+// The asynchronous EGL upload path is limited to FBO/surface compatible formats
+// (currently RGBA_8888). Disable this path to support for example compressed
+// texture uploads.
+const char kDisableAsyncEGLUploadsIfCompressed[] =
+ "disable-async-egl-uploads-if-compressed";
+
+// Enable dynamic switching between EGL upload path and Idle upload path
+// depending on if the uploaded texture is compressed or not.
+const char kEnableAsyncPixelTransferManagerCompressed[] =
+ "enable-async-pixel-transfer-manager-compressed";
+
const char* kGpuSwitches[] = {
kCompileShaderAlwaysSucceeds,
kDisableGLErrorLimit,
@@ -86,6 +97,8 @@ const char* kGpuSwitches[] = {
kEnableShareGroupAsyncTextureUpload,
kEnableUnsafeES3APIs,
kEnableSubscribeUniformExtension,
+ kDisableAsyncEGLUploadsIfCompressed,
+ kEnableAsyncPixelTransferManagerCompressed,
};
const int kNumGpuSwitches = arraysize(kGpuSwitches);
« no previous file with comments | « gpu/command_buffer/service/gpu_switches.h ('k') | gpu/command_buffer/service/image_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698