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

Side by Side Diff: ui/gl/gl_context_stub.cc

Issue 2480373002: Refactor context creation parameters into a struct. (Closed)
Patch Set: Created 4 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
OLDNEW
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
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
OLDNEW
« ui/gl/gl_context_cgl.cc ('K') | « ui/gl/gl_context_stub.h ('k') | ui/gl/gl_context_wgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698