Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(752)

Side by Side Diff: gpu/command_buffer/service/context_group.h

Issue 1095893002: gpu: Fix some context lost marking glitches+leaks and add UMA stats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: kbr's comment Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/common/constants.h ('k') | gpu/command_buffer/service/context_group.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698