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

Unified Diff: ui/gfx/gl/gl_context_cgl.cc

Issue 10067034: RefCounted types should not have public destructors, printing/ and ui/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 8 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/gfx/gl/gl_context_cgl.h ('k') | ui/gfx/gl/gl_context_osmesa.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_context_cgl.cc
diff --git a/ui/gfx/gl/gl_context_cgl.cc b/ui/gfx/gl/gl_context_cgl.cc
index 1d5597b59662eb804352a6546bbb5995130e19f5..4aa7ee7eae8dc7081c1d0b7cd8bfb53d109a519e 100644
--- a/ui/gfx/gl/gl_context_cgl.cc
+++ b/ui/gfx/gl/gl_context_cgl.cc
@@ -21,12 +21,8 @@ GLContextCGL::GLContextCGL(GLShareGroup* share_group)
gpu_preference_(PreferIntegratedGpu) {
}
-GLContextCGL::~GLContextCGL() {
- Destroy();
-}
-
-bool GLContextCGL::Initialize(
- GLSurface* compatible_surface, GpuPreference gpu_preference) {
+bool GLContextCGL::Initialize(GLSurface* compatible_surface,
+ GpuPreference gpu_preference) {
DCHECK(compatible_surface);
GLContextCGL* share_context = share_group() ?
@@ -144,6 +140,10 @@ void GLContextCGL::SetSwapInterval(int interval) {
LOG(WARNING) << "GLContex: GLContextCGL::SetSwapInterval is ignored.";
}
+GLContextCGL::~GLContextCGL() {
+ Destroy();
+}
+
GpuPreference GLContextCGL::GetGpuPreference() {
return gpu_preference_;
}
« no previous file with comments | « ui/gfx/gl/gl_context_cgl.h ('k') | ui/gfx/gl/gl_context_osmesa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698