OLD | NEW |
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/gl/gl_surface_wgl.h" | 5 #include "ui/gl/gl_surface_wgl.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | |
8 #include "base/logging.h" | 7 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/trace_event/trace_event.h" |
10 #include "ui/gl/gl_bindings.h" | 10 #include "ui/gl/gl_bindings.h" |
11 #include "ui/gl/gl_gl_api_implementation.h" | 11 #include "ui/gl/gl_gl_api_implementation.h" |
12 #include "ui/gl/gl_wgl_api_implementation.h" | 12 #include "ui/gl/gl_wgl_api_implementation.h" |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 namespace { | 16 namespace { |
17 const PIXELFORMATDESCRIPTOR kPixelFormatDescriptor = { | 17 const PIXELFORMATDESCRIPTOR kPixelFormatDescriptor = { |
18 sizeof(kPixelFormatDescriptor), // Size of structure. | 18 sizeof(kPixelFormatDescriptor), // Size of structure. |
19 1, // Default version. | 19 1, // Default version. |
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 | 352 |
353 gfx::Size PbufferGLSurfaceWGL::GetSize() { | 353 gfx::Size PbufferGLSurfaceWGL::GetSize() { |
354 return size_; | 354 return size_; |
355 } | 355 } |
356 | 356 |
357 void* PbufferGLSurfaceWGL::GetHandle() { | 357 void* PbufferGLSurfaceWGL::GetHandle() { |
358 return device_context_; | 358 return device_context_; |
359 } | 359 } |
360 | 360 |
361 } // namespace gfx | 361 } // namespace gfx |
OLD | NEW |