Chromium Code Reviews| Index: ui/gfx/gpu_memory_buffer.h |
| diff --git a/ui/gfx/gpu_memory_buffer.h b/ui/gfx/gpu_memory_buffer.h |
| index de5094301df462cb399f102911025fb3f8def5f3..da63862973c5993d2db586dfb60960503221545f 100644 |
| --- a/ui/gfx/gpu_memory_buffer.h |
| +++ b/ui/gfx/gpu_memory_buffer.h |
| @@ -65,8 +65,7 @@ struct GpuMemoryBufferHandle { |
| // regular CPU code, but can also be read by the GPU. |
| class GFX_EXPORT GpuMemoryBuffer { |
| public: |
| - enum AccessMode { READ_ONLY, WRITE_ONLY, READ_WRITE }; |
| - |
| + enum Usage { READ_WRITE, SCANOUT, USAGE_LAST = SCANOUT }; |
|
reveman
2014/04/30 11:31:28
I don't think this needs to be part of this interf
|
| GpuMemoryBuffer(); |
| virtual ~GpuMemoryBuffer(); |
| @@ -75,7 +74,7 @@ class GFX_EXPORT GpuMemoryBuffer { |
| // accessing the buffer or if CPU caches need to be synchronized. |mode| |
|
reveman
2014/04/30 11:31:28
Please update this comment.
|
| // indicate how the client intends to use the mapped buffer. Returns NULL on |
| // failure. |
| - virtual void* Map(AccessMode mode) = 0; |
| + virtual void* Map() = 0; |
| // Unmaps the buffer. It's illegal to use the pointer returned by Map() after |
| // this has been called. |