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

Unified Diff: gpu/command_buffer/client/gpu_memory_buffer_tracker.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: gpu/command_buffer/client/gpu_memory_buffer_tracker.h
diff --git a/gpu/command_buffer/client/gpu_memory_buffer_tracker.h b/gpu/command_buffer/client/gpu_memory_buffer_tracker.h
index 84158818a3760cc8f29d8d07d094f40595f7e3a6..d12f7abc2af1f81706129e425d0785ff848803ff 100644
--- a/gpu/command_buffer/client/gpu_memory_buffer_tracker.h
+++ b/gpu/command_buffer/client/gpu_memory_buffer_tracker.h
@@ -8,10 +8,7 @@
#include "base/basictypes.h"
#include "base/containers/hash_tables.h"
#include "gles2_impl_export.h"
-
-namespace gfx {
-class GpuMemoryBuffer;
-}
+#include "ui/gfx/gpu_memory_buffer.h"
namespace gpu {
class GpuControl;
@@ -24,7 +21,10 @@ class GLES2_IMPL_EXPORT GpuMemoryBufferTracker {
explicit GpuMemoryBufferTracker(GpuControl* gpu_control);
virtual ~GpuMemoryBufferTracker();
- int32 CreateBuffer(size_t width, size_t height, int32 internalformat);
+ int32 CreateBuffer(size_t width,
+ size_t height,
+ int32 internalformat,
+ gfx::GpuMemoryBuffer::Usage usage);
gfx::GpuMemoryBuffer* GetBuffer(int32 image_id);
void RemoveBuffer(int32 image_id);

Powered by Google App Engine
This is Rietveld 408576698