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 "ui/gl/gl_context_stub.h" | 5 #include "ui/gl/gl_context_stub.h" |
6 | 6 |
7 #include "ui/gl/gl_gl_api_implementation.h" | 7 #include "ui/gl/gl_gl_api_implementation.h" |
8 | 8 |
9 namespace gl { | 9 namespace gl { |
10 | 10 |
11 GLContextStub::GLContextStub() : GLContextReal(nullptr) {} | 11 GLContextStub::GLContextStub() : GLContextReal(nullptr) {} |
12 GLContextStub::GLContextStub(GLShareGroup* share_group) | 12 GLContextStub::GLContextStub(GLShareGroup* share_group) |
13 : GLContextReal(share_group) {} | 13 : GLContextReal(share_group) {} |
14 | 14 |
15 bool GLContextStub::Initialize( | 15 bool GLContextStub::Initialize(GLSurface* compatible_surface, |
16 GLSurface* compatible_surface, GpuPreference gpu_preference) { | 16 const GLContextAttribs& attribs) { |
17 return true; | 17 return true; |
18 } | 18 } |
19 | 19 |
20 bool GLContextStub::MakeCurrent(GLSurface* surface) { | 20 bool GLContextStub::MakeCurrent(GLSurface* surface) { |
21 SetGLToStubGLApi(); | 21 SetGLToStubGLApi(); |
22 SetCurrent(surface); | 22 SetCurrent(surface); |
23 InitializeDynamicBindings(); | 23 InitializeDynamicBindings(); |
24 return true; | 24 return true; |
25 } | 25 } |
26 | 26 |
(...skipping 12 matching lines...) Expand all Loading... |
39 void GLContextStub::OnSetSwapInterval(int interval) { | 39 void GLContextStub::OnSetSwapInterval(int interval) { |
40 } | 40 } |
41 | 41 |
42 std::string GLContextStub::GetGLRenderer() { | 42 std::string GLContextStub::GetGLRenderer() { |
43 return std::string("CHROMIUM"); | 43 return std::string("CHROMIUM"); |
44 } | 44 } |
45 | 45 |
46 GLContextStub::~GLContextStub() {} | 46 GLContextStub::~GLContextStub() {} |
47 | 47 |
48 } // namespace gl | 48 } // namespace gl |
OLD | NEW |