OLD | NEW |
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 #include "base/strings/string_split.h" | 7 #include "base/strings/string_split.h" |
8 #include "gpu/command_buffer/service/feature_info.h" | 8 #include "gpu/command_buffer/service/feature_info.h" |
9 #include "gpu/command_buffer/service/gl_utils.h" | 9 #include "gpu/command_buffer/service/gl_utils.h" |
10 #include "ui/gl/gl_version_info.h" | 10 #include "ui/gl/gl_version_info.h" |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 570 |
571 gpu::gles2::Logger* GLES2DecoderPassthroughImpl::GetLogger() { | 571 gpu::gles2::Logger* GLES2DecoderPassthroughImpl::GetLogger() { |
572 return &logger_; | 572 return &logger_; |
573 } | 573 } |
574 | 574 |
575 const gpu::gles2::ContextState* GLES2DecoderPassthroughImpl::GetContextState() { | 575 const gpu::gles2::ContextState* GLES2DecoderPassthroughImpl::GetContextState() { |
576 return nullptr; | 576 return nullptr; |
577 } | 577 } |
578 | 578 |
579 scoped_refptr<ShaderTranslatorInterface> | 579 scoped_refptr<ShaderTranslatorInterface> |
580 GLES2DecoderPassthroughImpl::GetTranslator(GLenum type) { | 580 GLES2DecoderPassthroughImpl::GetTranslator(GLenum type) const { |
581 return nullptr; | 581 return nullptr; |
582 } | 582 } |
583 | 583 |
584 void* GLES2DecoderPassthroughImpl::GetScratchMemory(size_t size) { | 584 void* GLES2DecoderPassthroughImpl::GetScratchMemory(size_t size) { |
585 if (scratch_memory_.size() < size) { | 585 if (scratch_memory_.size() < size) { |
586 scratch_memory_.resize(size, 0); | 586 scratch_memory_.resize(size, 0); |
587 } | 587 } |
588 return scratch_memory_.data(); | 588 return scratch_memory_.data(); |
589 } | 589 } |
590 | 590 |
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
889 }, /* NOLINT */ | 889 }, /* NOLINT */ |
890 | 890 |
891 const GLES2DecoderPassthroughImpl::CommandInfo | 891 const GLES2DecoderPassthroughImpl::CommandInfo |
892 GLES2DecoderPassthroughImpl::command_info[] = { | 892 GLES2DecoderPassthroughImpl::command_info[] = { |
893 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; | 893 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; |
894 | 894 |
895 #undef GLES2_CMD_OP | 895 #undef GLES2_CMD_OP |
896 | 896 |
897 } // namespace gles2 | 897 } // namespace gles2 |
898 } // namespace gpu | 898 } // namespace gpu |
OLD | NEW |