• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2013 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 #ifndef MOJO_GLES2_GLES2_IMPL_H_
6 #define MOJO_GLES2_GLES2_IMPL_H_
7 
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "mojo/gles2/export.h"
11 #include "mojo/public/gles2/gles2_private.h"
12 
13 namespace mojo {
14 namespace gles2 {
15 
16 class MOJO_GLES2_IMPL_EXPORT GLES2Impl : public GLES2Private {
17  public:
18   GLES2Impl();
19   virtual ~GLES2Impl();
20 
21   static void Init();
22 
23   virtual void Initialize() OVERRIDE;
24   virtual void Terminate() OVERRIDE;
25   virtual void MakeCurrent(uint64_t encoded) OVERRIDE;
26   virtual void SwapBuffers() OVERRIDE;
27 
28  private:
29   DISALLOW_COPY_AND_ASSIGN(GLES2Impl);
30 };
31 
32 }  // namespace gles2
33 }  // namespace mojo
34 
35 #endif  // MOJO_GLES2_GLES2_IMPL_H_
36