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

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

Issue 2152733003: gpu_fuzzer: cache shader translators (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 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 GLES2DecoderPassthroughImpl class. 5 // This file contains the GLES2DecoderPassthroughImpl class.
6 6
7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 8 #define GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 199
200 // Returns true if the context was lost specifically by GL_ARB_robustness. 200 // Returns true if the context was lost specifically by GL_ARB_robustness.
201 bool WasContextLostByRobustnessExtension() const override; 201 bool WasContextLostByRobustnessExtension() const override;
202 202
203 // Lose this context. 203 // Lose this context.
204 void MarkContextLost(error::ContextLostReason reason) override; 204 void MarkContextLost(error::ContextLostReason reason) override;
205 205
206 Logger* GetLogger() override; 206 Logger* GetLogger() override;
207 207
208 const ContextState* GetContextState() override; 208 const ContextState* GetContextState() override;
209 scoped_refptr<ShaderTranslatorInterface> GetTranslator(GLenum type) override;
209 210
210 private: 211 private:
211 int commands_to_process_; 212 int commands_to_process_;
212 213
213 DebugMarkerManager debug_marker_manager_; 214 DebugMarkerManager debug_marker_manager_;
214 Logger logger_; 215 Logger logger_;
215 216
216 #define GLES2_CMD_OP(name) \ 217 #define GLES2_CMD_OP(name) \
217 Error Handle##name(uint32_t immediate_data_size, const void* data); 218 Error Handle##name(uint32_t immediate_data_size, const void* data);
218 219
(...skipping 28 matching lines...) Expand all
247 248
248 // Include the prototypes of all the doer functions from a separate header to 249 // Include the prototypes of all the doer functions from a separate header to
249 // keep this file clean. 250 // keep this file clean.
250 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h" 251 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough_doer_prototyp es.h"
251 }; 252 };
252 253
253 } // namespace gles2 254 } // namespace gles2
254 } // namespace gpu 255 } // namespace gpu
255 256
256 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_ 257 #endif // GPU_COMMAND_BUFFER_SERVICE_GLES2_CMD_DECODER_PASSTHROUGH_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_mock.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder_passthrough.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698