OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_TESTS_GL_MANAGER_H_ | 5 #ifndef GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 6 #define GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } | 95 } |
96 | 96 |
97 gfx::GLContext* context() { | 97 gfx::GLContext* context() { |
98 return context_.get(); | 98 return context_.get(); |
99 } | 99 } |
100 | 100 |
101 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; | 101 const gpu::gles2::FeatureInfo::Workarounds& workarounds() const; |
102 | 102 |
103 // GpuControl implementation. | 103 // GpuControl implementation. |
104 Capabilities GetCapabilities() override; | 104 Capabilities GetCapabilities() override; |
105 int32 CreateImage(ClientBuffer buffer, | 105 int32 CreateImage(ClientBuffer* const buffers, |
106 size_t width, | 106 size_t width, |
107 size_t height, | 107 size_t height, |
108 unsigned internalformat) override; | 108 unsigned internalformat) override; |
109 void DestroyImage(int32 id) override; | 109 void DestroyImage(int32 id) override; |
110 int32 CreateGpuMemoryBufferImage(size_t width, | 110 int32 CreateGpuMemoryBufferImage(size_t width, |
111 size_t height, | 111 size_t height, |
112 unsigned internalformat, | 112 unsigned internalformat, |
113 unsigned usage) override; | 113 unsigned usage) override; |
114 uint32 InsertSyncPoint() override; | 114 uint32 InsertSyncPoint() override; |
115 uint32 InsertFutureSyncPoint() override; | 115 uint32 InsertFutureSyncPoint() override; |
(...skipping 25 matching lines...) Expand all Loading... |
141 // Used on Android to virtualize GL for all contexts. | 141 // Used on Android to virtualize GL for all contexts. |
142 static int use_count_; | 142 static int use_count_; |
143 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; | 143 static scoped_refptr<gfx::GLShareGroup>* base_share_group_; |
144 static scoped_refptr<gfx::GLSurface>* base_surface_; | 144 static scoped_refptr<gfx::GLSurface>* base_surface_; |
145 static scoped_refptr<gfx::GLContext>* base_context_; | 145 static scoped_refptr<gfx::GLContext>* base_context_; |
146 }; | 146 }; |
147 | 147 |
148 } // namespace gpu | 148 } // namespace gpu |
149 | 149 |
150 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ | 150 #endif // GPU_COMMAND_BUFFER_TESTS_GL_MANAGER_H_ |
OLD | NEW |