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

Unified Diff: ui/gl/gl_wgl_api_implementation.cc

Issue 1061733002: Remove windows/mac/ios specific code from //ui (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: fix default try set Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_wgl_api_implementation.h ('k') | ui/gl/gpu_switching_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_wgl_api_implementation.cc
diff --git a/ui/gl/gl_wgl_api_implementation.cc b/ui/gl/gl_wgl_api_implementation.cc
deleted file mode 100644
index 3b92d980b352903c6120792af7dc1c3288636008..0000000000000000000000000000000000000000
--- a/ui/gl/gl_wgl_api_implementation.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "ui/gl/gl_wgl_api_implementation.h"
-#include "ui/gl/gl_implementation.h"
-
-namespace gfx {
-
-RealWGLApi* g_real_wgl;
-
-void InitializeStaticGLBindingsWGL() {
- g_driver_wgl.InitializeStaticBindings();
- if (!g_real_wgl) {
- g_real_wgl = new RealWGLApi();
- }
- g_real_wgl->Initialize(&g_driver_wgl);
- g_current_wgl_context = g_real_wgl;
-}
-
-void InitializeDebugGLBindingsWGL() {
- g_driver_wgl.InitializeDebugBindings();
-}
-
-void ClearGLBindingsWGL() {
- if (g_real_wgl) {
- delete g_real_wgl;
- g_real_wgl = NULL;
- }
- g_current_wgl_context = NULL;
- g_driver_wgl.ClearBindings();
-}
-
-WGLApi::WGLApi() {
-}
-
-WGLApi::~WGLApi() {
-}
-
-WGLApiBase::WGLApiBase()
- : driver_(NULL) {
-}
-
-WGLApiBase::~WGLApiBase() {
-}
-
-void WGLApiBase::InitializeBase(DriverWGL* driver) {
- driver_ = driver;
-}
-
-RealWGLApi::RealWGLApi() {
-}
-
-RealWGLApi::~RealWGLApi() {
-}
-
-void RealWGLApi::Initialize(DriverWGL* driver) {
- InitializeBase(driver);
-}
-
-TraceWGLApi::~TraceWGLApi() {
-}
-
-bool GetGLWindowSystemBindingInfoWGL(GLWindowSystemBindingInfo* info) {
- const char* extensions = wglGetExtensionsStringEXT();
- *info = GLWindowSystemBindingInfo();
- if (extensions)
- info->extensions = extensions;
- return true;
-}
-
-} // namespace gfx
-
-
« no previous file with comments | « ui/gl/gl_wgl_api_implementation.h ('k') | ui/gl/gpu_switching_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698