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

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

Issue 11266023: Make GL calls go through subclassable class. (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
« no previous file with comments | « ui/gl/gl_osmesa_api_implementation.h ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "ui/gl/gl_osmesa_api_implementation.h"
6
7 namespace gfx {
8
9 RealOSMESAApi g_real_osmesa;
10
11 void InitializeGLBindingsOSMESA() {
12 g_driver_osmesa.InitializeBindings();
13 g_real_osmesa.Initialize(&g_driver_osmesa);
14 g_current_osmesa_context = &g_real_osmesa;
15 }
16
17 void InitializeGLExtensionBindingsOSMESA(GLContext* context) {
18 g_driver_osmesa.InitializeExtensionBindings(context);
19 }
20
21 void InitializeDebugGLBindingsOSMESA() {
22 g_driver_osmesa.InitializeDebugBindings();
23 }
24
25 void ClearGLBindingsOSMESA() {
26 g_driver_osmesa.ClearBindings();
27 }
28
29 OSMESAApi::OSMESAApi() {
30 }
31
32 OSMESAApi::~OSMESAApi() {
33 }
34
35 RealOSMESAApi::RealOSMESAApi() {
36 }
37
38 void RealOSMESAApi::Initialize(DriverOSMESA* driver) {
39 driver_ = driver;
40 }
41
42 } // namespace gfx
43
44
OLDNEW
« no previous file with comments | « ui/gl/gl_osmesa_api_implementation.h ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698