| 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 "ui/gl/gl_context_stub.h" | 5 #include "ui/gl/gl_context_stub.h" |
| 6 | 6 |
| 7 namespace gfx { | 7 namespace gfx { |
| 8 | 8 |
| 9 GLContextStub::GLContextStub() : GLContextReal(NULL) {} | 9 GLContextStub::GLContextStub() : GLContextReal(NULL) {} |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 } | 26 } |
| 27 | 27 |
| 28 bool GLContextStub::IsCurrent(GLSurface* surface) { | 28 bool GLContextStub::IsCurrent(GLSurface* surface) { |
| 29 return true; | 29 return true; |
| 30 } | 30 } |
| 31 | 31 |
| 32 void* GLContextStub::GetHandle() { | 32 void* GLContextStub::GetHandle() { |
| 33 return NULL; | 33 return NULL; |
| 34 } | 34 } |
| 35 | 35 |
| 36 void GLContextStub::SetSwapInterval(int interval) { | 36 void GLContextStub::OnSetSwapInterval(int interval) { |
| 37 } | 37 } |
| 38 | 38 |
| 39 std::string GLContextStub::GetExtensions() { | 39 std::string GLContextStub::GetExtensions() { |
| 40 return std::string(); | 40 return std::string(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 std::string GLContextStub::GetGLRenderer() { | 43 std::string GLContextStub::GetGLRenderer() { |
| 44 return std::string("CHROMIUM"); | 44 return std::string("CHROMIUM"); |
| 45 } | 45 } |
| 46 | 46 |
| 47 GLContextStub::~GLContextStub() {} | 47 GLContextStub::~GLContextStub() {} |
| 48 | 48 |
| 49 } // namespace gfx | 49 } // namespace gfx |
| OLD | NEW |