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

Side by Side Diff: ui/gfx/gl/gl_bindings_skia_in_process.cc

Issue 8698008: This change adds the apple software renderer as an option on Chrome/Mac. It's enabled by passing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
« no previous file with comments | « no previous file | ui/gfx/gl/gl_context.cc » ('j') | ui/gfx/gl/gl_context_cgl.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 5
6 #include "ui/gfx/gl/gl_bindings_skia_in_process.h" 6 #include "ui/gfx/gl/gl_bindings_skia_in_process.h"
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "third_party/skia/include/gpu/GrGLInterface.h" 9 #include "third_party/skia/include/gpu/GrGLInterface.h"
10 #include "ui/gfx/gl/gl_bindings.h" 10 #include "ui/gfx/gl/gl_bindings.h"
(...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 521
522 namespace gfx { 522 namespace gfx {
523 523
524 GrGLInterface* CreateInProcessSkiaGLBinding() { 524 GrGLInterface* CreateInProcessSkiaGLBinding() {
525 GrGLBinding binding; 525 GrGLBinding binding;
526 switch (gfx::GetGLImplementation()) { 526 switch (gfx::GetGLImplementation()) {
527 case gfx::kGLImplementationNone: 527 case gfx::kGLImplementationNone:
528 NOTREACHED(); 528 NOTREACHED();
529 return NULL; 529 return NULL;
530 case gfx::kGLImplementationDesktopGL: 530 case gfx::kGLImplementationDesktopGL:
531 case gfx::kGLImplementationAppleGL:
531 binding = kDesktop_GrGLBinding; 532 binding = kDesktop_GrGLBinding;
532 break; 533 break;
533 case gfx::kGLImplementationOSMesaGL: 534 case gfx::kGLImplementationOSMesaGL:
534 binding = kDesktop_GrGLBinding; 535 binding = kDesktop_GrGLBinding;
535 break; 536 break;
536 case gfx::kGLImplementationEGLGLES2: 537 case gfx::kGLImplementationEGLGLES2:
537 binding = kES2_GrGLBinding; 538 binding = kES2_GrGLBinding;
538 break; 539 break;
539 case gfx::kGLImplementationMockGL: 540 case gfx::kGLImplementationMockGL:
540 NOTREACHED(); 541 NOTREACHED();
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
660 StubGLRenderbufferStorageMultisample; 661 StubGLRenderbufferStorageMultisample;
661 interface->fBlitFramebuffer = StubGLBlitFramebuffer; 662 interface->fBlitFramebuffer = StubGLBlitFramebuffer;
662 interface->fMapBuffer = StubGLMapBuffer; 663 interface->fMapBuffer = StubGLMapBuffer;
663 interface->fUnmapBuffer = StubGLUnmapBuffer; 664 interface->fUnmapBuffer = StubGLUnmapBuffer;
664 interface->fBindFragDataLocationIndexed = 665 interface->fBindFragDataLocationIndexed =
665 StubGLBindFragDataLocationIndexed; 666 StubGLBindFragDataLocationIndexed;
666 return interface; 667 return interface;
667 } 668 }
668 669
669 } // namespace gfx 670 } // namespace gfx
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/gl/gl_context.cc » ('j') | ui/gfx/gl/gl_context_cgl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698