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

Unified Diff: gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc

Issue 2999923002: Revert of Allow creating GLImage-backed textures with glTexStorage2D. (Closed)
Patch Set: rebase Created 3 years, 4 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/ipc/service/gpu_memory_buffer_factory_io_surface.cc
diff --git a/gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc b/gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc
index 18733f20b6e1b13572bec612b0f1c80892ccb855..fd2b924a64675876999e4eb2d420a8fe4bf62e29 100644
--- a/gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc
+++ b/gpu/ipc/service/gpu_memory_buffer_factory_io_surface.cc
@@ -92,15 +92,14 @@ GpuMemoryBufferFactoryIOSurface::CreateImageForGpuMemoryBuffer(
scoped_refptr<gl::GLImage>
GpuMemoryBufferFactoryIOSurface::CreateAnonymousImage(const gfx::Size& size,
gfx::BufferFormat format,
- gfx::BufferUsage usage,
unsigned internalformat) {
// Note that the GpuMemoryBufferId and child id don't matter since the texture
// will never be directly exposed to other processes, only via a mailbox.
int gmb_id = 0;
int client_id = 0;
- gfx::GpuMemoryBufferHandle handle =
- CreateGpuMemoryBuffer(gfx::GpuMemoryBufferId(gmb_id), size, format, usage,
- client_id, gpu::kNullSurfaceHandle);
+ gfx::GpuMemoryBufferHandle handle = CreateGpuMemoryBuffer(
+ gfx::GpuMemoryBufferId(gmb_id), size, format, gfx::BufferUsage::SCANOUT,
+ client_id, gpu::kNullSurfaceHandle);
base::ScopedCFTypeRef<IOSurfaceRef> io_surface;
io_surface.reset(IOSurfaceLookupFromMachPort(handle.mach_port.get()));
« no previous file with comments | « gpu/ipc/service/gpu_memory_buffer_factory_io_surface.h ('k') | gpu/ipc/service/gpu_memory_buffer_factory_native_pixmap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698