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

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: Build 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..d09dd1092f1e6325545289918ee51644fda33e57 100644
--- a/ui/gfx/gpu_memory_buffer.h
+++ b/ui/gfx/gpu_memory_buffer.h
@@ -65,17 +65,14 @@ 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 };
-
GpuMemoryBuffer();
virtual ~GpuMemoryBuffer();
// Maps the buffer into the client's address space so it can be written to by
// the CPU. This call may block, for instance if the GPU needs to finish
- // accessing the buffer or if CPU caches need to be synchronized. |mode|
- // indicate how the client intends to use the mapped buffer. Returns NULL on
- // failure.
- virtual void* Map(AccessMode mode) = 0;
+ // accessing the buffer or if CPU caches need to be synchronized. Returns NULL
+ // on failure.
+ 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