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_surface.h" | 5 #include "ui/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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 | 170 |
171 bool GLSurface::Recreate() { | 171 bool GLSurface::Recreate() { |
172 NOTIMPLEMENTED(); | 172 NOTIMPLEMENTED(); |
173 return false; | 173 return false; |
174 } | 174 } |
175 | 175 |
176 bool GLSurface::DeferDraws() { | 176 bool GLSurface::DeferDraws() { |
177 return false; | 177 return false; |
178 } | 178 } |
179 | 179 |
180 std::string GLSurface::GetExtensions() { | 180 bool GLSurface::SupportsPostSubBuffer() { |
181 return std::string(); | 181 return false; |
182 } | |
183 | |
184 bool GLSurface::HasExtension(const char* name) { | |
185 std::string extensions = GetExtensions(); | |
186 extensions += " "; | |
187 | |
188 std::string delimited_name(name); | |
189 delimited_name += " "; | |
190 | |
191 return extensions.find(delimited_name) != std::string::npos; | |
192 } | 182 } |
193 | 183 |
194 unsigned int GLSurface::GetBackingFrameBufferObject() { | 184 unsigned int GLSurface::GetBackingFrameBufferObject() { |
195 return 0; | 185 return 0; |
196 } | 186 } |
197 | 187 |
198 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { | 188 bool GLSurface::PostSubBuffer(int x, int y, int width, int height) { |
199 return false; | 189 return false; |
200 } | 190 } |
201 | 191 |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
287 } | 277 } |
288 | 278 |
289 bool GLSurfaceAdapter::SwapBuffers() { | 279 bool GLSurfaceAdapter::SwapBuffers() { |
290 return surface_->SwapBuffers(); | 280 return surface_->SwapBuffers(); |
291 } | 281 } |
292 | 282 |
293 bool GLSurfaceAdapter::PostSubBuffer(int x, int y, int width, int height) { | 283 bool GLSurfaceAdapter::PostSubBuffer(int x, int y, int width, int height) { |
294 return surface_->PostSubBuffer(x, y, width, height); | 284 return surface_->PostSubBuffer(x, y, width, height); |
295 } | 285 } |
296 | 286 |
297 std::string GLSurfaceAdapter::GetExtensions() { | 287 bool GLSurfaceAdapter::SupportsPostSubBuffer() { |
298 return surface_->GetExtensions(); | 288 return surface_->SupportsPostSubBuffer(); |
299 } | 289 } |
300 | 290 |
301 gfx::Size GLSurfaceAdapter::GetSize() { | 291 gfx::Size GLSurfaceAdapter::GetSize() { |
302 return surface_->GetSize(); | 292 return surface_->GetSize(); |
303 } | 293 } |
304 | 294 |
305 void* GLSurfaceAdapter::GetHandle() { | 295 void* GLSurfaceAdapter::GetHandle() { |
306 return surface_->GetHandle(); | 296 return surface_->GetHandle(); |
307 } | 297 } |
308 | 298 |
(...skipping 29 matching lines...) Expand all Loading... |
338 return surface_->GetFormat(); | 328 return surface_->GetFormat(); |
339 } | 329 } |
340 | 330 |
341 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 331 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
342 return surface_->GetVSyncProvider(); | 332 return surface_->GetVSyncProvider(); |
343 } | 333 } |
344 | 334 |
345 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 335 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
346 | 336 |
347 } // namespace gfx | 337 } // namespace gfx |
OLD | NEW |