OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "app/gfx/gl/gl_context_stub.h" |
| 6 |
| 7 namespace gfx { |
| 8 |
| 9 StubGLContext::~StubGLContext() {} |
| 10 |
| 11 bool StubGLContext::MakeCurrent() { |
| 12 return true; |
| 13 } |
| 14 |
| 15 bool StubGLContext::IsCurrent() { |
| 16 return true; |
| 17 } |
| 18 |
| 19 bool StubGLContext::IsOffscreen() { |
| 20 return false; |
| 21 } |
| 22 |
| 23 bool StubGLContext::SwapBuffers() { |
| 24 return true; |
| 25 } |
| 26 |
| 27 gfx::Size StubGLContext::GetSize() { |
| 28 return size_; |
| 29 } |
| 30 |
| 31 void* StubGLContext::GetHandle() { |
| 32 return NULL; |
| 33 } |
| 34 |
| 35 std::string StubGLContext::GetExtensions() { |
| 36 return std::string(); |
| 37 } |
| 38 |
| 39 } // namespace gfx |
OLD | NEW |