| 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 #include <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "ui/gfx/gl/gl_context.h" | 9 #include "ui/gfx/gl/gl_context.h" |
| 10 #include "ui/gfx/gl/gl_bindings.h" | 10 #include "ui/gfx/gl/gl_bindings.h" |
| 11 #include "ui/gfx/gl/gl_implementation.h" | 11 #include "ui/gfx/gl/gl_implementation.h" |
| 12 #include "ui/gfx/gl/gl_switches.h" | 12 #include "ui/gfx/gl/gl_switches.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 | 15 |
| 16 void GLContext::ReleaseCurrent() { |
| 17 // TODO(apatrick): Implement this in GLContext derivatives. |
| 18 } |
| 19 |
| 20 GLSurface* GLContext::GetSurface() { |
| 21 // TODO(apatrick): Remove this when surfaces are split from contexts. |
| 22 return NULL; |
| 23 } |
| 24 |
| 16 unsigned int GLContext::GetBackingFrameBufferObject() { | 25 unsigned int GLContext::GetBackingFrameBufferObject() { |
| 17 return 0; | 26 return 0; |
| 18 } | 27 } |
| 19 | 28 |
| 20 std::string GLContext::GetExtensions() { | 29 std::string GLContext::GetExtensions() { |
| 21 DCHECK(IsCurrent()); | 30 DCHECK(IsCurrent()); |
| 22 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); | 31 const char* ext = reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS)); |
| 23 return std::string(ext ? ext : ""); | 32 return std::string(ext ? ext : ""); |
| 24 } | 33 } |
| 25 | 34 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return false; | 75 return false; |
| 67 case kGLImplementationMockGL: | 76 case kGLImplementationMockGL: |
| 68 return false; | 77 return false; |
| 69 default: | 78 default: |
| 70 NOTREACHED(); | 79 NOTREACHED(); |
| 71 return true; | 80 return true; |
| 72 } | 81 } |
| 73 } | 82 } |
| 74 | 83 |
| 75 } // namespace gfx | 84 } // namespace gfx |
| OLD | NEW |