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 // Out of order because it has conflicts with other includes on Windows. | 7 // Out of order because it has conflicts with other includes on Windows. |
10 #include "third_party/angle/include/EGL/egl.h" | 8 #include "third_party/angle/include/EGL/egl.h" |
11 | 9 |
12 #include "base/bind.h" | 10 #include "base/bind.h" |
13 #include "base/command_line.h" | 11 #include "base/command_line.h" |
14 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
15 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 } | 280 } |
283 } | 281 } |
284 | 282 |
285 if (surface->Initialize()) | 283 if (surface->Initialize()) |
286 return surface; | 284 return surface; |
287 else | 285 else |
288 return NULL; | 286 return NULL; |
289 } | 287 } |
290 | 288 |
291 } // namespace content | 289 } // namespace content |
292 | |
293 #endif // ENABLE_GPU | |
OLD | NEW |