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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl.cc

Issue 592933003: Fix for surfaceless implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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: content/common/gpu/client/gpu_memory_buffer_impl.cc
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl.cc b/content/common/gpu/client/gpu_memory_buffer_impl.cc
index b3cd98332b41d82eecec0e17434bfb01d865a78d..cd7e0afa110b5e1c9d935f030be989e5eab2226d 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl.cc
+++ b/content/common/gpu/client/gpu_memory_buffer_impl.cc
@@ -21,6 +21,7 @@ bool GpuMemoryBufferImpl::IsFormatValid(unsigned internalformat) {
switch (internalformat) {
case GL_BGRA8_EXT:
case GL_RGBA8_OES:
+ case GL_RGBX8_CHROMIUM:
return true;
default:
return false;
@@ -43,6 +44,7 @@ size_t GpuMemoryBufferImpl::BytesPerPixel(unsigned internalformat) {
switch (internalformat) {
case GL_BGRA8_EXT:
case GL_RGBA8_OES:
+ case GL_RGBX8_CHROMIUM:
return 4;
default:
NOTREACHED();

Powered by Google App Engine
This is Rietveld 408576698