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_surface.h" | 5 #include "ui/gfx/gl/gl_surface.h" |
6 | 6 |
7 #include "base/threading/thread_local.h" | 7 #include "base/threading/thread_local.h" |
8 #include "ui/gfx/gl/gl_context.h" | 8 #include "ui/gfx/gl/gl_context.h" |
9 | 9 |
10 namespace gfx { | 10 namespace gfx { |
(...skipping 13 matching lines...) Expand all Loading... |
24 return true; | 24 return true; |
25 } | 25 } |
26 | 26 |
27 unsigned int GLSurface::GetBackingFrameBufferObject() { | 27 unsigned int GLSurface::GetBackingFrameBufferObject() { |
28 return 0; | 28 return 0; |
29 } | 29 } |
30 | 30 |
31 void GLSurface::OnMakeCurrent(GLContext* context) { | 31 void GLSurface::OnMakeCurrent(GLContext* context) { |
32 } | 32 } |
33 | 33 |
| 34 void GLSurface::SetVisible(bool visible) { |
| 35 } |
| 36 |
34 GLSurface* GLSurface::GetCurrent() { | 37 GLSurface* GLSurface::GetCurrent() { |
35 return current_surface_.Get(); | 38 return current_surface_.Get(); |
36 } | 39 } |
37 | 40 |
38 void GLSurface::SetCurrent(GLSurface* surface) { | 41 void GLSurface::SetCurrent(GLSurface* surface) { |
39 current_surface_.Set(surface); | 42 current_surface_.Set(surface); |
40 } | 43 } |
41 | 44 |
42 } // namespace gfx | 45 } // namespace gfx |
OLD | NEW |