Add ICU message format support
[chromium-blink-merge.git] / ui / gl / gl_context_stub.h
blob811f9082b8604c98d3cbcd10e41e22aba80f9c3f
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.
5 #ifndef UI_GL_GL_CONTEXT_STUB_H_
6 #define UI_GL_GL_CONTEXT_STUB_H_
8 #include "ui/gl/gl_context.h"
10 namespace gfx {
12 // A GLContext that does nothing for unit tests.
13 class GL_EXPORT GLContextStub : public GLContextReal {
14 public:
15 GLContextStub();
17 // Implement GLContext.
18 bool Initialize(GLSurface* compatible_surface,
19 GpuPreference gpu_preference) override;
20 bool MakeCurrent(GLSurface* surface) override;
21 void ReleaseCurrent(GLSurface* surface) override;
22 bool IsCurrent(GLSurface* surface) override;
23 void* GetHandle() override;
24 void OnSetSwapInterval(int interval) override;
25 std::string GetExtensions() override;
26 std::string GetGLRenderer() override;
28 protected:
29 ~GLContextStub() override;
31 private:
32 DISALLOW_COPY_AND_ASSIGN(GLContextStub);
35 } // namespace gfx
37 #endif // UI_GL_GL_CONTEXT_STUB_H_