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 <algorithm> | 7 #include <algorithm> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 bool GLSurface::Initialize() | 83 bool GLSurface::Initialize() |
84 { | 84 { |
85 return true; | 85 return true; |
86 } | 86 } |
87 | 87 |
88 bool GLSurface::Resize(const gfx::Size& size) { | 88 bool GLSurface::Resize(const gfx::Size& size) { |
89 NOTIMPLEMENTED(); | 89 NOTIMPLEMENTED(); |
90 return false; | 90 return false; |
91 } | 91 } |
92 | 92 |
| 93 std::string GLSurface::GetExtensions() { |
| 94 DCHECK_EQ(GetCurrent(), this); |
| 95 return std::string(""); |
| 96 } |
| 97 |
93 unsigned int GLSurface::GetBackingFrameBufferObject() { | 98 unsigned int GLSurface::GetBackingFrameBufferObject() { |
94 return 0; | 99 return 0; |
95 } | 100 } |
96 | 101 |
97 bool GLSurface::SupportsPostSubBuffer() { | |
98 return false; | |
99 } | |
100 | |
101 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 102 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
102 return false; | 103 return false; |
103 } | 104 } |
104 | 105 |
105 bool GLSurface::OnMakeCurrent(GLContext* context) { | 106 bool GLSurface::OnMakeCurrent(GLContext* context) { |
106 return true; | 107 return true; |
107 } | 108 } |
108 | 109 |
109 void GLSurface::SetVisible(bool visible) { | 110 void GLSurface::SetVisible(bool visible) { |
110 } | 111 } |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 | 190 |
190 void* GLSurfaceAdapter::GetConfig() { | 191 void* GLSurfaceAdapter::GetConfig() { |
191 return surface_->GetConfig(); | 192 return surface_->GetConfig(); |
192 } | 193 } |
193 | 194 |
194 unsigned GLSurfaceAdapter::GetFormat() { | 195 unsigned GLSurfaceAdapter::GetFormat() { |
195 return surface_->GetFormat(); | 196 return surface_->GetFormat(); |
196 } | 197 } |
197 | 198 |
198 } // namespace gfx | 199 } // namespace gfx |
OLD | NEW |