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 #if defined(ENABLE_GPU) | |
6 | |
7 #include "content/common/gpu/image_transport_surface.h" | 5 #include "content/common/gpu/image_transport_surface.h" |
8 | 6 |
9 #include "base/mac/scoped_cftyperef.h" | 7 #include "base/mac/scoped_cftyperef.h" |
10 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
11 #include "content/common/gpu/gpu_messages.h" | 9 #include "content/common/gpu/gpu_messages.h" |
12 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
13 #include "ui/gl/gl_bindings.h" | 11 #include "ui/gl/gl_bindings.h" |
14 #include "ui/gl/gl_context.h" | 12 #include "ui/gl/gl_context.h" |
15 #include "ui/gl/gl_implementation.h" | 13 #include "ui/gl/gl_implementation.h" |
16 #include "ui/gl/gl_surface_cgl.h" | 14 #include "ui/gl/gl_surface_cgl.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 NOTREACHED(); | 433 NOTREACHED(); |
436 return NULL; | 434 return NULL; |
437 } | 435 } |
438 if (surface->Initialize()) | 436 if (surface->Initialize()) |
439 return surface; | 437 return surface; |
440 else | 438 else |
441 return NULL; | 439 return NULL; |
442 } | 440 } |
443 | 441 |
444 } // namespace content | 442 } // namespace content |
445 | |
446 #endif // defined(USE_GPU) | |
OLD | NEW |