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

Side by Side Diff: content/common/gpu/image_transport_surface_mac.cc

Issue 12326013: mac content shell drt: Do not force the mesa gl implementation. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 7 years, 10 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
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 "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
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
OLDNEW
« no previous file with comments | « no previous file | content/shell/shell_main_delegate.cc » ('j') | content/shell/shell_main_delegate.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698