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

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

Issue 1149233004: Android: Enable 'crash GPU process on context lost' WAR for Mali-400 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 6 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
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 // 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 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 virtual void RestoreGlobalState() const = 0; 164 virtual void RestoreGlobalState() const = 0;
165 virtual void RestoreProgramBindings() const = 0; 165 virtual void RestoreProgramBindings() const = 0;
166 virtual void RestoreTextureState(unsigned service_id) const = 0; 166 virtual void RestoreTextureState(unsigned service_id) const = 0;
167 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0; 167 virtual void RestoreTextureUnitBindings(unsigned unit) const = 0;
168 168
169 virtual void ClearAllAttributes() const = 0; 169 virtual void ClearAllAttributes() const = 0;
170 virtual void RestoreAllAttributes() const = 0; 170 virtual void RestoreAllAttributes() const = 0;
171 171
172 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0; 172 virtual void SetIgnoreCachedStateForTest(bool ignore) = 0;
173 173
174 // Allow the decoder to exit the current process.
175 // Defaults to |false|.
176 virtual void SetAllowExit(bool allow_exit) = 0;
177
174 // Gets the QueryManager for this context. 178 // Gets the QueryManager for this context.
175 virtual QueryManager* GetQueryManager() = 0; 179 virtual QueryManager* GetQueryManager() = 0;
176 180
177 // Gets the VertexArrayManager for this context. 181 // Gets the VertexArrayManager for this context.
178 virtual VertexArrayManager* GetVertexArrayManager() = 0; 182 virtual VertexArrayManager* GetVertexArrayManager() = 0;
179 183
180 // Gets the ImageManager for this context. 184 // Gets the ImageManager for this context.
181 virtual ImageManager* GetImageManager() = 0; 185 virtual ImageManager* GetImageManager() = 0;
182 186
183 // Gets the ValuebufferManager for this context. 187 // Gets the ValuebufferManager for this context.
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
265 bool log_commands_; 269 bool log_commands_;
266 bool unsafe_es3_apis_enabled_; 270 bool unsafe_es3_apis_enabled_;
267 271
268 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder); 272 DISALLOW_COPY_AND_ASSIGN(GLES2Decoder);
269 }; 273 };
270 274
271 } // namespace gles2 275 } // namespace gles2
272 } // namespace gpu 276 } // namespace gpu
273 277
274 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_ 278 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_H_
OLDNEW
« no previous file with comments | « content/common/gpu/gpu_command_buffer_stub.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698