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 // This file contains the GLES2Decoder class. | 5 // This file contains the GLES2Decoder class. |
6 | 6 |
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 | 173 |
174 // Sets a callback which is called when a glResizeCHROMIUM command | 174 // Sets a callback which is called when a glResizeCHROMIUM command |
175 // is processed. | 175 // is processed. |
176 virtual void SetResizeCallback( | 176 virtual void SetResizeCallback( |
177 const base::Callback<void(gfx::Size, float)>& callback) = 0; | 177 const base::Callback<void(gfx::Size, float)>& callback) = 0; |
178 | 178 |
179 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; | 179 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; |
180 | 180 |
181 // Interface to performing async pixel transfers. | 181 // Interface to performing async pixel transfers. |
182 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; | 182 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; |
183 virtual void SetAsyncPixelTransferDelegateForTest( | |
184 AsyncPixelTransferDelegate* delegate) = 0; | |
185 | |
186 virtual AsyncPixelTransferManager* GetAsyncPixelTransferManager() = 0; | 183 virtual AsyncPixelTransferManager* GetAsyncPixelTransferManager() = 0; |
187 virtual void ResetAsyncPixelTransferManagerForTest() = 0; | 184 virtual void ResetAsyncPixelTransferManagerForTest() = 0; |
| 185 virtual void SetAsyncPixelTransferManagerForTest( |
| 186 AsyncPixelTransferManager* manager) = 0; |
188 | 187 |
189 // Get the service texture ID corresponding to a client texture ID. | 188 // Get the service texture ID corresponding to a client texture ID. |
190 // If no such record is found then return false. | 189 // If no such record is found then return false. |
191 virtual bool GetServiceTextureId(uint32 client_texture_id, | 190 virtual bool GetServiceTextureId(uint32 client_texture_id, |
192 uint32* service_texture_id); | 191 uint32* service_texture_id); |
193 | 192 |
194 // Provides detail about a lost context if one occurred. | 193 // Provides detail about a lost context if one occurred. |
195 virtual error::ContextLostReason GetContextLostReason() = 0; | 194 virtual error::ContextLostReason GetContextLostReason() = 0; |
196 | 195 |
197 // Clears a level of a texture | 196 // Clears a level of a texture |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 bool debug_; | 242 bool debug_; |
244 bool log_commands_; | 243 bool log_commands_; |
245 static bool testing_force_is_angle_; | 244 static bool testing_force_is_angle_; |
246 | 245 |
247 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 246 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
248 }; | 247 }; |
249 | 248 |
250 } // namespace gles2 | 249 } // namespace gles2 |
251 } // namespace gpu | 250 } // namespace gpu |
252 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 251 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
OLD | NEW |