| 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 virtual bool ProcessPendingQueries() = 0; | 166 virtual bool ProcessPendingQueries() = 0; |
| 167 | 167 |
| 168 // Returns false if there are no idle work to be made. | 168 // Returns false if there are no idle work to be made. |
| 169 virtual bool HasMoreIdleWork() = 0; | 169 virtual bool HasMoreIdleWork() = 0; |
| 170 | 170 |
| 171 virtual void PerformIdleWork() = 0; | 171 virtual void PerformIdleWork() = 0; |
| 172 | 172 |
| 173 // Sets a callback which is called when a glResizeCHROMIUM command | 173 // Sets a callback which is called when a glResizeCHROMIUM command |
| 174 // is processed. | 174 // is processed. |
| 175 virtual void SetResizeCallback( | 175 virtual void SetResizeCallback( |
| 176 const base::Callback<void(gfx::Size)>& callback) = 0; | 176 const base::Callback<void(gfx::Size, float)>& callback) = 0; |
| 177 | 177 |
| 178 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; | 178 virtual void SetStreamTextureManager(StreamTextureManager* manager) = 0; |
| 179 | 179 |
| 180 // Interface to performing async pixel transfers. | 180 // Interface to performing async pixel transfers. |
| 181 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; | 181 virtual AsyncPixelTransferDelegate* GetAsyncPixelTransferDelegate() = 0; |
| 182 virtual void SetAsyncPixelTransferDelegate( | 182 virtual void SetAsyncPixelTransferDelegate( |
| 183 AsyncPixelTransferDelegate* delegate) = 0; | 183 AsyncPixelTransferDelegate* delegate) = 0; |
| 184 | 184 |
| 185 // Get the service texture ID corresponding to a client texture ID. | 185 // Get the service texture ID corresponding to a client texture ID. |
| 186 // If no such record is found then return false. | 186 // If no such record is found then return false. |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 bool debug_; | 239 bool debug_; |
| 240 bool log_commands_; | 240 bool log_commands_; |
| 241 static bool testing_force_is_angle_; | 241 static bool testing_force_is_angle_; |
| 242 | 242 |
| 243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 243 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 244 }; | 244 }; |
| 245 | 245 |
| 246 } // namespace gles2 | 246 } // namespace gles2 |
| 247 } // namespace gpu | 247 } // namespace gpu |
| 248 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 248 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |