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

Side by Side Diff: gpu/command_buffer/service/gl_state_restorer_impl.h

Issue 11275120: Virtual GL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | Annotate | Revision Log
OLDNEW
(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 a GLStateRestorer that forwards to a GLES2Decoder.
20 class GPU_EXPORT GLStateRestorerImpl : public gfx::GLStateRestorer {
21 public:
22 explicit GLStateRestorerImpl(gles2::GLES2Decoder* decoder);
23 virtual ~GLStateRestorerImpl();
24
25 virtual void RestoreState() OVERRIDE;
26
27 private:
28 gles2::GLES2Decoder* decoder_;
29
30 DISALLOW_COPY_AND_ASSIGN(GLStateRestorerImpl);
31 };
32
33 } // namespace gpu
34
35 #endif // GPU_COMMAND_BUFFER_SERVICE_GL_STATE_RESTORER_IMPL_H_
36
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/gl_context_virtual.cc ('k') | gpu/command_buffer/service/gl_state_restorer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698