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

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

Issue 1998723002: Move code in ui/gl/* from gfx:: to gl:: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 months 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
« no previous file with comments | « ui/gl/gl_bindings_autogen_osmesa.h ('k') | ui/gl/gl_bindings_autogen_wgl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // This file is auto-generated from 5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py 6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
11 #include <string> 11 #include <string>
12 12
13 #include "base/trace_event/trace_event.h" 13 #include "base/trace_event/trace_event.h"
14 #include "ui/gl/gl_bindings.h" 14 #include "ui/gl/gl_bindings.h"
15 #include "ui/gl/gl_context.h" 15 #include "ui/gl/gl_context.h"
16 #include "ui/gl/gl_enums.h" 16 #include "ui/gl/gl_enums.h"
17 #include "ui/gl/gl_implementation.h" 17 #include "ui/gl/gl_implementation.h"
18 #include "ui/gl/gl_osmesa_api_implementation.h" 18 #include "ui/gl/gl_osmesa_api_implementation.h"
19 #include "ui/gl/gl_version_info.h" 19 #include "ui/gl/gl_version_info.h"
20 20
21 namespace gfx { 21 namespace gl {
22 22
23 static bool g_debugBindingsInitialized; 23 static bool g_debugBindingsInitialized;
24 DriverOSMESA g_driver_osmesa; 24 DriverOSMESA g_driver_osmesa;
25 25
26 void DriverOSMESA::InitializeStaticBindings() { 26 void DriverOSMESA::InitializeStaticBindings() {
27 fn.OSMesaColorClampFn = reinterpret_cast<OSMesaColorClampProc>( 27 fn.OSMesaColorClampFn = reinterpret_cast<OSMesaColorClampProc>(
28 GetGLProcAddress("OSMesaColorClamp")); 28 GetGLProcAddress("OSMesaColorClamp"));
29 fn.OSMesaCreateContextFn = reinterpret_cast<OSMesaCreateContextProc>( 29 fn.OSMesaCreateContextFn = reinterpret_cast<OSMesaCreateContextProc>(
30 GetGLProcAddress("OSMesaCreateContext")); 30 GetGLProcAddress("OSMesaCreateContext"));
31 fn.OSMesaCreateContextExtFn = reinterpret_cast<OSMesaCreateContextExtProc>( 31 fn.OSMesaCreateContextExtFn = reinterpret_cast<OSMesaCreateContextExtProc>(
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 GLsizei height) { 371 GLsizei height) {
372 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent") 372 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaMakeCurrent")
373 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height); 373 return osmesa_api_->OSMesaMakeCurrentFn(ctx, buffer, type, width, height);
374 } 374 }
375 375
376 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) { 376 void TraceOSMESAApi::OSMesaPixelStoreFn(GLint pname, GLint value) {
377 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore") 377 TRACE_EVENT_BINARY_EFFICIENT0("gpu", "TraceGLAPI::OSMesaPixelStore")
378 osmesa_api_->OSMesaPixelStoreFn(pname, value); 378 osmesa_api_->OSMesaPixelStoreFn(pname, value);
379 } 379 }
380 380
381 } // namespace gfx 381 } // namespace gl
OLDNEW
« no previous file with comments | « ui/gl/gl_bindings_autogen_osmesa.h ('k') | ui/gl/gl_bindings_autogen_wgl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698