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

Side by Side Diff: app/gfx/gl/gl_context_mac.cc

Issue 2782006: Remove duplicated code in AcceleratedSurface using PbufferGLContext instead.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Address review comments. Created 10 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 | Annotate | Revision Log
« no previous file with comments | « app/gfx/gl/gl_context.h ('k') | app/surface/accelerated_surface_mac.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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 implements the ViewGLContext and PbufferGLContext classes. 5 // This file implements the ViewGLContext and PbufferGLContext classes.
6 6
7 #include <OpenGL/OpenGL.h> 7 #include <OpenGL/OpenGL.h>
8 8
9 #include "app/surface/accelerated_surface_mac.h"
10 #include "base/logging.h" 9 #include "base/logging.h"
11 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
12 #include "app/gfx/gl/gl_bindings.h" 11 #include "app/gfx/gl/gl_bindings.h"
13 #include "app/gfx/gl/gl_context.h" 12 #include "app/gfx/gl/gl_context.h"
14 #include "app/gfx/gl/gl_context_stub.h" 13 #include "app/gfx/gl/gl_context_stub.h"
15 #include "app/gfx/gl/gl_implementation.h" 14 #include "app/gfx/gl/gl_implementation.h"
16 15
17 namespace gfx { 16 namespace gfx {
18 17
19 typedef CGLContextObj GLContextHandle; 18 typedef CGLContextObj GLContextHandle;
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 } 175 }
177 case kGLImplementationMockGL: 176 case kGLImplementationMockGL:
178 return new StubGLContext; 177 return new StubGLContext;
179 default: 178 default:
180 NOTREACHED(); 179 NOTREACHED();
181 return NULL; 180 return NULL;
182 } 181 }
183 } 182 }
184 183
185 } // namespace gfx 184 } // namespace gfx
OLDNEW
« no previous file with comments | « app/gfx/gl/gl_context.h ('k') | app/surface/accelerated_surface_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698