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

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

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 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h" 5 #include "gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h"
6 6
7 namespace gpu { 7 namespace gpu {
8 namespace gles2 { 8 namespace gles2 {
9 9
10 GLES2DecoderPassthroughImpl::GLES2DecoderPassthroughImpl(ContextGroup* group) 10 GLES2DecoderPassthroughImpl::GLES2DecoderPassthroughImpl(ContextGroup* group)
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 error::ContextLostReason reason) {} 358 error::ContextLostReason reason) {}
359 359
360 gpu::gles2::Logger* GLES2DecoderPassthroughImpl::GetLogger() { 360 gpu::gles2::Logger* GLES2DecoderPassthroughImpl::GetLogger() {
361 return &logger_; 361 return &logger_;
362 } 362 }
363 363
364 const gpu::gles2::ContextState* GLES2DecoderPassthroughImpl::GetContextState() { 364 const gpu::gles2::ContextState* GLES2DecoderPassthroughImpl::GetContextState() {
365 return nullptr; 365 return nullptr;
366 } 366 }
367 367
368 scoped_refptr<ShaderTranslatorInterface>
369 GLES2DecoderPassthroughImpl::GetTranslator(GLenum type) {
370 return nullptr;
371 }
372
368 #define GLES2_CMD_OP(name) \ 373 #define GLES2_CMD_OP(name) \
369 { \ 374 { \
370 &GLES2DecoderPassthroughImpl::Handle##name, cmds::name::kArgFlags, \ 375 &GLES2DecoderPassthroughImpl::Handle##name, cmds::name::kArgFlags, \
371 cmds::name::cmd_flags, \ 376 cmds::name::cmd_flags, \
372 sizeof(cmds::name) / sizeof(CommandBufferEntry) - 1, \ 377 sizeof(cmds::name) / sizeof(CommandBufferEntry) - 1, \
373 }, /* NOLINT */ 378 }, /* NOLINT */
374 379
375 const GLES2DecoderPassthroughImpl::CommandInfo 380 const GLES2DecoderPassthroughImpl::CommandInfo
376 GLES2DecoderPassthroughImpl::command_info[] = { 381 GLES2DecoderPassthroughImpl::command_info[] = {
377 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; 382 GLES2_COMMAND_LIST(GLES2_CMD_OP)};
378 383
379 #undef GLES2_CMD_OP 384 #undef GLES2_CMD_OP
380 385
381 } // namespace gles2 386 } // namespace gles2
382 } // namespace gpu 387 } // namespace gpu
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder_passthrough.h ('k') | gpu/command_buffer/tests/fuzzer_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698