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

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

Issue 2762833003: gpu: Use decoder state restoration for scoped_binders (Closed)
Patch Set: Created 3 years, 9 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 #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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 void GLES2DecoderPassthroughImpl::RestoreGlobalState() const {} 404 void GLES2DecoderPassthroughImpl::RestoreGlobalState() const {}
405 405
406 void GLES2DecoderPassthroughImpl::RestoreProgramBindings() const {} 406 void GLES2DecoderPassthroughImpl::RestoreProgramBindings() const {}
407 407
408 void GLES2DecoderPassthroughImpl::RestoreTextureState( 408 void GLES2DecoderPassthroughImpl::RestoreTextureState(
409 unsigned service_id) const {} 409 unsigned service_id) const {}
410 410
411 void GLES2DecoderPassthroughImpl::RestoreTextureUnitBindings( 411 void GLES2DecoderPassthroughImpl::RestoreTextureUnitBindings(
412 unsigned unit) const {} 412 unsigned unit) const {}
413 413
414 void GLES2DecoderPassthroughImpl::RestoreVertexAttribArray(
415 unsigned index) const {}
416
414 void GLES2DecoderPassthroughImpl::RestoreAllExternalTextureBindingsIfNeeded() {} 417 void GLES2DecoderPassthroughImpl::RestoreAllExternalTextureBindingsIfNeeded() {}
415 418
416 void GLES2DecoderPassthroughImpl::ClearAllAttributes() const {} 419 void GLES2DecoderPassthroughImpl::ClearAllAttributes() const {}
417 420
418 void GLES2DecoderPassthroughImpl::RestoreAllAttributes() const {} 421 void GLES2DecoderPassthroughImpl::RestoreAllAttributes() const {}
419 422
420 void GLES2DecoderPassthroughImpl::SetIgnoreCachedStateForTest(bool ignore) {} 423 void GLES2DecoderPassthroughImpl::SetIgnoreCachedStateForTest(bool ignore) {}
421 424
422 void GLES2DecoderPassthroughImpl::SetForceShaderNameHashingForTest(bool force) { 425 void GLES2DecoderPassthroughImpl::SetForceShaderNameHashingForTest(bool force) {
423 426
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
870 }, /* NOLINT */ 873 }, /* NOLINT */
871 874
872 const GLES2DecoderPassthroughImpl::CommandInfo 875 const GLES2DecoderPassthroughImpl::CommandInfo
873 GLES2DecoderPassthroughImpl::command_info[] = { 876 GLES2DecoderPassthroughImpl::command_info[] = {
874 GLES2_COMMAND_LIST(GLES2_CMD_OP)}; 877 GLES2_COMMAND_LIST(GLES2_CMD_OP)};
875 878
876 #undef GLES2_CMD_OP 879 #undef GLES2_CMD_OP
877 880
878 } // namespace gles2 881 } // namespace gles2
879 } // namespace gpu 882 } // namespace gpu
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698