| OLD | NEW |
| 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 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <limits.h> | 7 #include <limits.h> |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 #include <stdio.h> | 10 #include <stdio.h> |
| (...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 540 void RestoreState(const ContextState* prev_state) override; | 540 void RestoreState(const ContextState* prev_state) override; |
| 541 | 541 |
| 542 void RestoreActiveTexture() const override { state_.RestoreActiveTexture(); } | 542 void RestoreActiveTexture() const override { state_.RestoreActiveTexture(); } |
| 543 void RestoreAllTextureUnitBindings( | 543 void RestoreAllTextureUnitBindings( |
| 544 const ContextState* prev_state) const override { | 544 const ContextState* prev_state) const override { |
| 545 state_.RestoreAllTextureUnitBindings(prev_state); | 545 state_.RestoreAllTextureUnitBindings(prev_state); |
| 546 } | 546 } |
| 547 void RestoreActiveTextureUnitBinding(unsigned int target) const override { | 547 void RestoreActiveTextureUnitBinding(unsigned int target) const override { |
| 548 state_.RestoreActiveTextureUnitBinding(target); | 548 state_.RestoreActiveTextureUnitBinding(target); |
| 549 } | 549 } |
| 550 void RestoreBufferBinding(unsigned int target) const override { |
| 551 state_.RestoreBufferBinding(target); |
| 552 } |
| 550 void RestoreBufferBindings() const override { | 553 void RestoreBufferBindings() const override { |
| 551 state_.RestoreBufferBindings(); | 554 state_.RestoreBufferBindings(); |
| 552 } | 555 } |
| 553 void RestoreGlobalState() const override { state_.RestoreGlobalState(NULL); } | 556 void RestoreGlobalState() const override { state_.RestoreGlobalState(NULL); } |
| 554 void RestoreProgramBindings() const override { | 557 void RestoreProgramBindings() const override { |
| 555 state_.RestoreProgramSettings(nullptr, false); | 558 state_.RestoreProgramSettings(nullptr, false); |
| 556 } | 559 } |
| 557 void RestoreTextureUnitBindings(unsigned unit) const override { | 560 void RestoreTextureUnitBindings(unsigned unit) const override { |
| 558 state_.RestoreTextureUnitBindings(unit, NULL); | 561 state_.RestoreTextureUnitBindings(unit, NULL); |
| 559 } | 562 } |
| 563 void RestoreVertexAttribArray(unsigned index) override { |
| 564 RestoreStateForAttrib(index, true); |
| 565 } |
| 560 void RestoreFramebufferBindings() const override; | 566 void RestoreFramebufferBindings() const override; |
| 561 void RestoreRenderbufferBindings() override; | 567 void RestoreRenderbufferBindings() override; |
| 562 void RestoreTextureState(unsigned service_id) const override; | 568 void RestoreTextureState(unsigned service_id) const override; |
| 563 | 569 |
| 564 void ClearAllAttributes() const override; | 570 void ClearAllAttributes() const override; |
| 565 void RestoreAllAttributes() const override; | 571 void RestoreAllAttributes() const override; |
| 566 | 572 |
| 567 QueryManager* GetQueryManager() override { return query_manager_.get(); } | 573 QueryManager* GetQueryManager() override { return query_manager_.get(); } |
| 568 TransformFeedbackManager* GetTransformFeedbackManager() override { | 574 TransformFeedbackManager* GetTransformFeedbackManager() override { |
| 569 return transform_feedback_manager_.get(); | 575 return transform_feedback_manager_.get(); |
| (...skipping 18943 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19513 } | 19519 } |
| 19514 | 19520 |
| 19515 // Include the auto-generated part of this file. We split this because it means | 19521 // Include the auto-generated part of this file. We split this because it means |
| 19516 // we can easily edit the non-auto generated parts right here in this file | 19522 // we can easily edit the non-auto generated parts right here in this file |
| 19517 // instead of having to edit some template or the code generator. | 19523 // instead of having to edit some template or the code generator. |
| 19518 #include "base/macros.h" | 19524 #include "base/macros.h" |
| 19519 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 19525 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 19520 | 19526 |
| 19521 } // namespace gles2 | 19527 } // namespace gles2 |
| 19522 } // namespace gpu | 19528 } // namespace gpu |
| OLD | NEW |