| 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 "ui/gfx/gl/gl_context_stub.h" | 5 #include "ui/gfx/gl/gl_context_stub.h" |
| 6 | 6 |
| 7 namespace gfx { | 7 namespace gfx { |
| 8 | 8 |
| 9 GLContextStub::GLContextStub() : GLContext(NULL) { | 9 GLContextStub::GLContextStub() : GLContext(NULL) { |
| 10 } | 10 } |
| 11 | 11 |
| 12 GLContextStub::~GLContextStub() { | 12 GLContextStub::~GLContextStub() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 bool GLContextStub::Initialize(GLSurface* compatible_surface) { | 15 bool GLContextStub::Initialize( |
| 16 GLSurface* compatible_surface, GpuPreference gpu_preference) { |
| 16 return true; | 17 return true; |
| 17 } | 18 } |
| 18 | 19 |
| 19 void GLContextStub::Destroy() { | 20 void GLContextStub::Destroy() { |
| 20 } | 21 } |
| 21 | 22 |
| 22 bool GLContextStub::MakeCurrent(GLSurface* surface) { | 23 bool GLContextStub::MakeCurrent(GLSurface* surface) { |
| 23 return true; | 24 return true; |
| 24 } | 25 } |
| 25 | 26 |
| 26 void GLContextStub::ReleaseCurrent(GLSurface* surface) { | 27 void GLContextStub::ReleaseCurrent(GLSurface* surface) { |
| 27 } | 28 } |
| 28 | 29 |
| 29 bool GLContextStub::IsCurrent(GLSurface* surface) { | 30 bool GLContextStub::IsCurrent(GLSurface* surface) { |
| 30 return true; | 31 return true; |
| 31 } | 32 } |
| 32 | 33 |
| 33 void* GLContextStub::GetHandle() { | 34 void* GLContextStub::GetHandle() { |
| 34 return NULL; | 35 return NULL; |
| 35 } | 36 } |
| 36 | 37 |
| 37 void GLContextStub::SetSwapInterval(int interval) { | 38 void GLContextStub::SetSwapInterval(int interval) { |
| 38 } | 39 } |
| 39 | 40 |
| 40 std::string GLContextStub::GetExtensions() { | 41 std::string GLContextStub::GetExtensions() { |
| 41 return std::string(); | 42 return std::string(); |
| 42 } | 43 } |
| 43 | 44 |
| 44 } // namespace gfx | 45 } // namespace gfx |
| OLD | NEW |