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

Unified Diff: ui/gl/gl_context_cgl.h

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_bindings_autogen_wgl.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_cgl.h
diff --git a/ui/gl/gl_context_cgl.h b/ui/gl/gl_context_cgl.h
deleted file mode 100644
index 88813b39cc197b298ec4a34889a5fb003067aa8b..0000000000000000000000000000000000000000
--- a/ui/gl/gl_context_cgl.h
+++ /dev/null
@@ -1,54 +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.
-
-#ifndef UI_GL_GL_CONTEXT_CGL_H_
-#define UI_GL_GL_CONTEXT_CGL_H_
-
-#include <OpenGL/CGLTypes.h>
-
-#include "ui/gl/gl_context.h"
-
-namespace gfx {
-
-class GLSurface;
-
-// Encapsulates a CGL OpenGL context.
-class GLContextCGL : public GLContextReal {
- public:
- explicit GLContextCGL(GLShareGroup* share_group);
-
- // Implement GLContext.
- bool Initialize(GLSurface* compatible_surface,
- GpuPreference gpu_preference) override;
- void Destroy() override;
- bool MakeCurrent(GLSurface* surface) override;
- void ReleaseCurrent(GLSurface* surface) override;
- bool IsCurrent(GLSurface* surface) override;
- void* GetHandle() override;
- void OnSetSwapInterval(int interval) override;
- bool GetTotalGpuMemory(size_t* bytes) override;
- void SetSafeToForceGpuSwitch() override;
- bool ForceGpuSwitchIfNeeded() override;
-
- protected:
- ~GLContextCGL() override;
-
- private:
- GpuPreference GetGpuPreference();
-
- void* context_;
- GpuPreference gpu_preference_;
-
- CGLPixelFormatObj discrete_pixelformat_;
-
- int screen_;
- int renderer_id_;
- bool safe_to_force_gpu_switch_;
-
- DISALLOW_COPY_AND_ASSIGN(GLContextCGL);
-};
-
-} // namespace gfx
-
-#endif // UI_GL_GL_CONTEXT_CGL_H_
« no previous file with comments | « ui/gl/gl_bindings_autogen_wgl.cc ('k') | ui/gl/gl_context_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698