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

Unified Diff: content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h

Issue 263553009: content: Cleanup GpuMemoryBuffer allocation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove use of ChildProcessHostImpl and use base::CheckedNumeric Created 6 years, 8 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_io_surface.h
diff --git a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
index de5c1fd1b26657efff50f80fdce8431363185b0a..d739ac23c95c178527ff5a551860342ba12c66a8 100644
--- a/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
+++ b/content/common/gpu/client/gpu_memory_buffer_impl_io_surface.h
@@ -12,8 +12,7 @@ class IOSurfaceSupport;
namespace content {
-// Provides implementation of a GPU memory buffer based
-// on an IO surface handle.
+// Implementation of GPU memory buffer based on IO surfaces.
class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
public:
GpuMemoryBufferImplIOSurface(gfx::Size size, unsigned internalformat);
@@ -22,7 +21,7 @@ class GpuMemoryBufferImplIOSurface : public GpuMemoryBufferImpl {
static bool IsFormatSupported(unsigned internalformat);
static uint32 PixelFormat(unsigned internalformat);
- bool Initialize(gfx::GpuMemoryBufferHandle handle);
+ bool InitializeFromHandle(gfx::GpuMemoryBufferHandle handle);
// Overridden from gfx::GpuMemoryBuffer:
virtual void* Map(AccessMode mode) OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698