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

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

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 years, 7 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 | « ui/gl/gl_surface_wgl.h ('k') | ui/gl/gl_surface_win.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "ui/gfx/gl/gl_surface_wgl.h" 5 #include "ui/gl/gl_surface_wgl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/gfx/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 12
13 namespace { 13 namespace {
14 const PIXELFORMATDESCRIPTOR kPixelFormatDescriptor = { 14 const PIXELFORMATDESCRIPTOR kPixelFormatDescriptor = {
15 sizeof(kPixelFormatDescriptor), // Size of structure. 15 sizeof(kPixelFormatDescriptor), // Size of structure.
16 1, // Default version. 16 1, // Default version.
17 PFD_DRAW_TO_WINDOW | // Window drawing support. 17 PFD_DRAW_TO_WINDOW | // Window drawing support.
18 PFD_SUPPORT_OPENGL | // OpenGL support. 18 PFD_SUPPORT_OPENGL | // OpenGL support.
19 PFD_DOUBLEBUFFER, // Double buffering support (not stereo). 19 PFD_DOUBLEBUFFER, // Double buffering support (not stereo).
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 gfx::Size PbufferGLSurfaceWGL::GetSize() { 358 gfx::Size PbufferGLSurfaceWGL::GetSize() {
359 return size_; 359 return size_;
360 } 360 }
361 361
362 void* PbufferGLSurfaceWGL::GetHandle() { 362 void* PbufferGLSurfaceWGL::GetHandle() {
363 return device_context_; 363 return device_context_;
364 } 364 }
365 365
366 } // namespace gfx 366 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gl/gl_surface_wgl.h ('k') | ui/gl/gl_surface_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698