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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
259 return false; | 259 return false; |
260 std::string extensions(c_extensions); | 260 std::string extensions(c_extensions); |
261 extensions += " "; | 261 extensions += " "; |
262 | 262 |
263 std::string delimited_name(name); | 263 std::string delimited_name(name); |
264 delimited_name += " "; | 264 delimited_name += " "; |
265 | 265 |
266 return extensions.find(delimited_name) != std::string::npos; | 266 return extensions.find(delimited_name) != std::string::npos; |
267 } | 267 } |
268 | 268 |
| 269 void GLSurface::SetSwapInterval(int interval) { |
| 270 } |
| 271 |
269 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} | 272 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} |
270 | 273 |
271 bool GLSurfaceAdapter::Initialize() { | 274 bool GLSurfaceAdapter::Initialize() { |
272 return surface_->Initialize(); | 275 return surface_->Initialize(); |
273 } | 276 } |
274 | 277 |
275 void GLSurfaceAdapter::Destroy() { | 278 void GLSurfaceAdapter::Destroy() { |
276 surface_->Destroy(); | 279 surface_->Destroy(); |
277 } | 280 } |
278 | 281 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 z_order, transform, image, bounds_rect, crop_rect); | 360 z_order, transform, image, bounds_rect, crop_rect); |
358 } | 361 } |
359 | 362 |
360 bool GLSurfaceAdapter::IsSurfaceless() const { | 363 bool GLSurfaceAdapter::IsSurfaceless() const { |
361 return surface_->IsSurfaceless(); | 364 return surface_->IsSurfaceless(); |
362 } | 365 } |
363 | 366 |
364 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 367 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
365 | 368 |
366 } // namespace gfx | 369 } // namespace gfx |
OLD | NEW |