OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "base/callback.h" | 11 #include "base/callback.h" |
12 #include "base/hash_tables.h" | 12 #include "base/containers/hash_tables.h" |
13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
14 #include "gpu/command_buffer/service/texture_manager.h" | 14 #include "gpu/command_buffer/service/texture_manager.h" |
15 #include "gpu/gpu_export.h" | 15 #include "gpu/gpu_export.h" |
16 | 16 |
17 #if defined(COMPILER_GCC) | 17 #if defined(COMPILER_GCC) |
18 namespace BASE_HASH_NAMESPACE { | 18 namespace BASE_HASH_NAMESPACE { |
19 template <> | 19 template <> |
20 struct hash<gpu::gles2::TextureRef*> { | 20 struct hash<gpu::gles2::TextureRef*> { |
21 size_t operator()(gpu::gles2::TextureRef* ptr) const { | 21 size_t operator()(gpu::gles2::TextureRef* ptr) const { |
22 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); | 22 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 scoped_refptr<AsyncPixelTransferState> > | 92 scoped_refptr<AsyncPixelTransferState> > |
93 TextureToStateMap; | 93 TextureToStateMap; |
94 TextureToStateMap state_map_; | 94 TextureToStateMap state_map_; |
95 | 95 |
96 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManager); | 96 DISALLOW_COPY_AND_ASSIGN(AsyncPixelTransferManager); |
97 }; | 97 }; |
98 | 98 |
99 } // namespace gpu | 99 } // namespace gpu |
100 | 100 |
101 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ | 101 #endif // GPU_COMMAND_BUFFER_SERVICE_ASYNC_PIXEL_TRANSFER_MANAGER_H_ |
OLD | NEW |