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 "content/common/gpu/image_transport_surface.h" | 5 #include "content/common/gpu/image_transport_surface.h" |
6 | 6 |
7 #include "base/mac/scoped_cftyperef.h" | 7 #include "base/mac/scoped_cftyperef.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/common/gpu/gpu_messages.h" | 9 #include "content/common/gpu/gpu_messages.h" |
10 #include "content/common/gpu/texture_image_transport_surface.h" | 10 #include "content/common/gpu/texture_image_transport_surface.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
429 case gfx::kGLImplementationAppleGL: | 429 case gfx::kGLImplementationAppleGL: |
430 if (!io_surface_support) { | 430 if (!io_surface_support) { |
431 DLOG(WARNING) << "No IOSurface support"; | 431 DLOG(WARNING) << "No IOSurface support"; |
432 return NULL; | 432 return NULL; |
433 } else { | 433 } else { |
434 surface = new IOSurfaceImageTransportSurface( | 434 surface = new IOSurfaceImageTransportSurface( |
435 manager, stub, surface_handle.handle); | 435 manager, stub, surface_handle.handle); |
436 } | 436 } |
437 break; | 437 break; |
438 default: | 438 default: |
439 NOTREACHED(); | 439 NOTREACHED() << gfx::GetGLImplementation(); |
Ken Russell (switch to Gerrit)
2013/02/26 20:25:29
This could be more descriptive.
| |
440 return NULL; | 440 return NULL; |
441 } | 441 } |
442 } | 442 } |
443 if (surface->Initialize()) | 443 if (surface->Initialize()) |
444 return surface; | 444 return surface; |
445 else | 445 else |
446 return NULL; | 446 return NULL; |
447 } | 447 } |
448 | 448 |
449 } // namespace content | 449 } // namespace content |
OLD | NEW |