Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // This file contains the GLStateRestorerImpl class. | |
| 6 | |
| 7 #ifndef GPU_COMMAND_BUFFER_SERVICE_GL_STATE_RESTORER_IMPL_H_ | |
| 8 #define GPU_COMMAND_BUFFER_SERVICE_GL_STATE_RESTORER_IMPL_H_ | |
| 9 | |
| 10 #include "base/compiler_specific.h" | |
| 11 #include "gpu/gpu_export.h" | |
| 12 #include "ui/gl/gl_state_restorer.h" | |
| 13 | |
| 14 namespace gpu { | |
| 15 namespace gles2 { | |
| 16 class GLES2Decoder; | |
| 17 } | |
| 18 | |
| 19 // This class implements the AsyncAPIInterface interface, decoding GLES2 | |
|
apatrick_chromium
2012/11/06 19:11:48
Comment is for another class.
| |
| 20 // commands and calling GL. | |
| 21 class GPU_EXPORT GLStateRestorerImpl : public gfx::GLStateRestorer { | |
| 22 public: | |
| 23 explicit GLStateRestorerImpl(gles2::GLES2Decoder* decoder); | |
| 24 virtual ~GLStateRestorerImpl(); | |
| 25 | |
| 26 virtual void RestoreState() OVERRIDE; | |
| 27 | |
| 28 private: | |
| 29 gles2::GLES2Decoder* decoder_; | |
| 30 | |
| 31 DISALLOW_COPY_AND_ASSIGN(GLStateRestorerImpl); | |
| 32 }; | |
| 33 | |
| 34 } // namespace gpu | |
| 35 | |
| 36 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STATE_RESTORER_IMPL_H_ | |
| 37 | |
| OLD | NEW |