| 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 20 matching lines...) Expand all Loading... |
| 31 struct Mailbox; | 31 struct Mailbox; |
| 32 | 32 |
| 33 namespace gles2 { | 33 namespace gles2 { |
| 34 | 34 |
| 35 class ContextGroup; | 35 class ContextGroup; |
| 36 class ErrorState; | 36 class ErrorState; |
| 37 class GLES2Util; | 37 class GLES2Util; |
| 38 class ImageManager; | 38 class ImageManager; |
| 39 class Logger; | 39 class Logger; |
| 40 class QueryManager; | 40 class QueryManager; |
| 41 class Texture; |
| 41 class VertexArrayManager; | 42 class VertexArrayManager; |
| 42 class ValuebufferManager; | 43 class ValuebufferManager; |
| 43 struct ContextState; | 44 struct ContextState; |
| 44 | 45 |
| 45 struct DisallowedFeatures { | 46 struct DisallowedFeatures { |
| 46 DisallowedFeatures() | 47 DisallowedFeatures() |
| 47 : gpu_memory_manager(false) { | 48 : gpu_memory_manager(false) { |
| 48 } | 49 } |
| 49 | 50 |
| 50 bool gpu_memory_manager; | 51 bool gpu_memory_manager; |
| (...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 205 // If no such record is found then return false. | 206 // If no such record is found then return false. |
| 206 virtual bool GetServiceTextureId(uint32 client_texture_id, | 207 virtual bool GetServiceTextureId(uint32 client_texture_id, |
| 207 uint32* service_texture_id); | 208 uint32* service_texture_id); |
| 208 | 209 |
| 209 // Provides detail about a lost context if one occurred. | 210 // Provides detail about a lost context if one occurred. |
| 210 virtual error::ContextLostReason GetContextLostReason() = 0; | 211 virtual error::ContextLostReason GetContextLostReason() = 0; |
| 211 | 212 |
| 212 // Clears a level of a texture | 213 // Clears a level of a texture |
| 213 // Returns false if a GL error should be generated. | 214 // Returns false if a GL error should be generated. |
| 214 virtual bool ClearLevel( | 215 virtual bool ClearLevel( |
| 215 unsigned service_id, | 216 Texture* texture, |
| 216 unsigned bind_target, | |
| 217 unsigned target, | 217 unsigned target, |
| 218 int level, | 218 int level, |
| 219 unsigned internal_format, | 219 unsigned internal_format, |
| 220 unsigned format, | 220 unsigned format, |
| 221 unsigned type, | 221 unsigned type, |
| 222 int width, | 222 int width, |
| 223 int height, | 223 int height, |
| 224 bool is_texture_immutable) = 0; | 224 bool is_texture_immutable) = 0; |
| 225 | 225 |
| 226 virtual ErrorState* GetErrorState() = 0; | 226 virtual ErrorState* GetErrorState() = 0; |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 bool log_commands_; | 265 bool log_commands_; |
| 266 bool unsafe_es3_apis_enabled_; | 266 bool unsafe_es3_apis_enabled_; |
| 267 | 267 |
| 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 269 }; | 269 }; |
| 270 | 270 |
| 271 } // namespace gles2 | 271 } // namespace gles2 |
| 272 } // namespace gpu | 272 } // namespace gpu |
| 273 | 273 |
| 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |