Index: gpu/command_buffer/client/gpu_memory_buffer_tracker_in_process.h |
diff --git a/gpu/command_buffer/client/gpu_memory_buffer_tracker_in_process.h b/gpu/command_buffer/client/gpu_memory_buffer_tracker_in_process.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..381c211f5e989c6b5cf2b26bdf3b02271258cf16 |
--- /dev/null |
+++ b/gpu/command_buffer/client/gpu_memory_buffer_tracker_in_process.h |
@@ -0,0 +1,49 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_IN_PROCESS_H_ |
+#define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_IN_PROCESS_H_ |
+ |
+#include <GLES2/gl2.h> |
+ |
+#include "../client/gpu_memory_buffer_tracker.h" |
+#include "../client/hash_tables.h" |
+#include "base/basictypes.h" |
+#include "base/compiler_specific.h" |
+#include "gles2_impl_export.h" |
+ |
+namespace gpu { |
+class GpuMemoryBuffer; |
+ |
+namespace gles2 { |
+class GLES2Implementation; |
+class ImageFactory; |
+ |
+// Tracks GPU memory buffer objects for client side of command buffer. |
+class GLES2_IMPL_EXPORT GpuMemoryBufferTrackerInProcess |
no sievers
2013/05/10 01:21:51
I don't understand the in-process notion here. Gpu
kaanb
2013/05/13 23:00:36
Yes, removed this file.
|
+ : public GpuMemoryBufferTracker { |
+ public: |
+ // Ownership of |factory| and |gl| remain with caller. |
+ explicit GpuMemoryBufferTrackerInProcess(ImageFactory* factory, |
+ GLES2Implementation* gl); |
+ virtual ~GpuMemoryBufferTrackerInProcess(); |
+ |
+ // Methods from GpuMemoryBufferTracker |
+ virtual GLuint CreateBuffer(GLsizei width, GLsizei height) OVERRIDE; |
+ virtual GpuMemoryBuffer* GetBuffer(GLuint image_id) OVERRIDE; |
+ virtual void RemoveBuffer(GLuint image_id) OVERRIDE; |
+ |
+ private: |
+ typedef gpu::hash_map<GLuint, GpuMemoryBuffer*> BufferMap; |
+ BufferMap buffers_; |
+ ImageFactory* factory_; // weak |
+ GLES2Implementation* gl_; // weak |
+ |
+ DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferTrackerInProcess); |
+}; |
+ |
+} // namespace gles2 |
+} // namespace gpu |
+ |
+#endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_IN_PROCESS_H_ |