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

Unified Diff: ui/gfx/gpu_memory_buffer.h

Issue 255713008: Change glimage to accept a type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no ozone 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: 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.

Powered by Google App Engine
This is Rietveld 408576698