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_SERVICE_CONTEXT_GROUP_H_ | 5 #ifndef GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 6 #define GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 return shader_manager_.get(); | 159 return shader_manager_.get(); |
160 } | 160 } |
161 | 161 |
162 TransferBufferManagerInterface* transfer_buffer_manager() const { | 162 TransferBufferManagerInterface* transfer_buffer_manager() const { |
163 return transfer_buffer_manager_.get(); | 163 return transfer_buffer_manager_.get(); |
164 } | 164 } |
165 | 165 |
166 uint32 GetMemRepresented() const; | 166 uint32 GetMemRepresented() const; |
167 | 167 |
168 // Loses all the context associated with this group. | 168 // Loses all the context associated with this group. |
169 void LoseContexts(GLenum reset_status); | 169 void LoseContexts(error::ContextLostReason reason); |
170 | 170 |
171 // EXT_draw_buffer related states for backbuffer. | 171 // EXT_draw_buffer related states for backbuffer. |
172 GLenum draw_buffer() const { | 172 GLenum draw_buffer() const { |
173 return draw_buffer_; | 173 return draw_buffer_; |
174 } | 174 } |
175 void set_draw_buffer(GLenum buf) { | 175 void set_draw_buffer(GLenum buf) { |
176 draw_buffer_ = buf; | 176 draw_buffer_ = buf; |
177 } | 177 } |
178 | 178 |
179 bool GetBufferServiceId(GLuint client_id, GLuint* service_id) const; | 179 bool GetBufferServiceId(GLuint client_id, GLuint* service_id) const; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 | 292 |
293 DISALLOW_COPY_AND_ASSIGN(ContextGroup); | 293 DISALLOW_COPY_AND_ASSIGN(ContextGroup); |
294 }; | 294 }; |
295 | 295 |
296 } // namespace gles2 | 296 } // namespace gles2 |
297 } // namespace gpu | 297 } // namespace gpu |
298 | 298 |
299 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ | 299 #endif // GPU_COMMAND_BUFFER_SERVICE_CONTEXT_GROUP_H_ |
300 | 300 |
301 | 301 |
OLD | NEW |