OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ |
6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ | 6 #define GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ |
7 | 7 |
8 #include <GLES2/gl2.h> | 8 #include <GLES2/gl2.h> |
9 | 9 |
10 #include "../client/hash_tables.h" | |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "gles2_impl_export.h" | 11 #include "gles2_impl_export.h" |
| 12 #include "gpu/command_buffer/client/hash_tables.h" |
13 | 13 |
14 namespace gpu { | 14 namespace gpu { |
15 class GpuMemoryBuffer; | 15 class GpuMemoryBuffer; |
16 | 16 |
17 namespace gles2 { | 17 namespace gles2 { |
18 class ImageFactory; | 18 class ImageFactory; |
19 | 19 |
20 // Tracks GPU memory buffer objects on the client side. | 20 // Tracks GPU memory buffer objects on the client side. |
21 class GLES2_IMPL_EXPORT GpuMemoryBufferTracker { | 21 class GLES2_IMPL_EXPORT GpuMemoryBufferTracker { |
22 public: | 22 public: |
(...skipping 11 matching lines...) Expand all Loading... |
34 BufferMap buffers_; | 34 BufferMap buffers_; |
35 ImageFactory* factory_; | 35 ImageFactory* factory_; |
36 | 36 |
37 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferTracker); | 37 DISALLOW_COPY_AND_ASSIGN(GpuMemoryBufferTracker); |
38 }; | 38 }; |
39 | 39 |
40 } // namespace gles2 | 40 } // namespace gles2 |
41 } // namespace gpu | 41 } // namespace gpu |
42 | 42 |
43 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ | 43 #endif // GPU_COMMAND_BUFFER_CLIENT_GPU_MEMORY_BUFFER_TRACKER_H_ |
OLD | NEW |