OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |