| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 // Clears a level of a texture | 125 // Clears a level of a texture |
| 126 // Returns false if a GL error should be generated. | 126 // Returns false if a GL error should be generated. |
| 127 virtual bool ClearLevel( | 127 virtual bool ClearLevel( |
| 128 unsigned service_id, | 128 unsigned service_id, |
| 129 unsigned bind_target, | 129 unsigned bind_target, |
| 130 unsigned target, | 130 unsigned target, |
| 131 int level, | 131 int level, |
| 132 unsigned format, | 132 unsigned format, |
| 133 unsigned type, | 133 unsigned type, |
| 134 int width, | 134 int width, |
| 135 int height) = 0; | 135 int height, |
| 136 bool is_texture_immutable) = 0; |
| 136 | 137 |
| 137 // A callback for messages from the decoder. | 138 // A callback for messages from the decoder. |
| 138 virtual void SetMsgCallback(const MsgCallback& callback) = 0; | 139 virtual void SetMsgCallback(const MsgCallback& callback) = 0; |
| 139 | 140 |
| 140 protected: | 141 protected: |
| 141 GLES2Decoder(); | 142 GLES2Decoder(); |
| 142 | 143 |
| 143 private: | 144 private: |
| 144 bool debug_; | 145 bool debug_; |
| 145 | 146 |
| 146 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); | 147 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); |
| 147 }; | 148 }; |
| 148 | 149 |
| 149 } // namespace gles2 | 150 } // namespace gles2 |
| 150 } // namespace gpu | 151 } // namespace gpu |
| 151 | 152 |
| 152 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ | 153 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ |
| OLD | NEW |