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