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

Unified Diff: gpu/ipc/common/gpu_memory_buffer_support.cc

Issue 2353453002: ui: Remove SurfaceTexture GpuMemoryBuffer type. (Closed)
Patch Set: ui: Remove SurfaceTexture GpuMemoryBuffer type. Created 4 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
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_surface_texture_unittest.cc ('k') | gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/ipc/common/gpu_memory_buffer_support.cc
diff --git a/gpu/ipc/common/gpu_memory_buffer_support.cc b/gpu/ipc/common/gpu_memory_buffer_support.cc
index ff151805c92ad3676005b79468ef646fdcdaec8d..64412459f3b269c0587f8218267da4628fee6e85 100644
--- a/gpu/ipc/common/gpu_memory_buffer_support.cc
+++ b/gpu/ipc/common/gpu_memory_buffer_support.cc
@@ -17,9 +17,6 @@ gfx::GpuMemoryBufferType GetNativeGpuMemoryBufferType() {
#if defined(OS_MACOSX)
return gfx::IO_SURFACE_BUFFER;
#endif
-#if defined(OS_ANDROID)
- return gfx::SURFACE_TEXTURE_BUFFER;
-#endif
#if defined(USE_OZONE)
return gfx::OZONE_NATIVE_PIXMAP;
#endif
@@ -48,19 +45,6 @@ bool IsNativeGpuMemoryBufferConfigurationSupported(gfx::BufferFormat format,
return false;
#endif
-#if defined(OS_ANDROID)
- switch (usage) {
- case gfx::BufferUsage::GPU_READ:
- case gfx::BufferUsage::SCANOUT:
- case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE_PERSISTENT:
- return false;
- case gfx::BufferUsage::GPU_READ_CPU_READ_WRITE:
- return format == gfx::BufferFormat::RGBA_8888;
- }
- NOTREACHED();
- return false;
-#endif
-
#if defined(USE_OZONE)
if (!ui::ClientNativePixmapFactory::GetInstance()) {
// unittests don't have to set ClientNativePixmapFactory.
« no previous file with comments | « gpu/ipc/client/gpu_memory_buffer_impl_surface_texture_unittest.cc ('k') | gpu/ipc/service/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698