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 | |
271 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} | 268 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} |
272 | 269 |
273 bool GLSurfaceAdapter::Initialize() { | 270 bool GLSurfaceAdapter::Initialize() { |
274 return surface_->Initialize(); | 271 return surface_->Initialize(); |
275 } | 272 } |
276 | 273 |
277 void GLSurfaceAdapter::Destroy() { | 274 void GLSurfaceAdapter::Destroy() { |
278 surface_->Destroy(); | 275 surface_->Destroy(); |
279 } | 276 } |
280 | 277 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
359 z_order, transform, image, bounds_rect, crop_rect); | 356 z_order, transform, image, bounds_rect, crop_rect); |
360 } | 357 } |
361 | 358 |
362 bool GLSurfaceAdapter::IsSurfaceless() const { | 359 bool GLSurfaceAdapter::IsSurfaceless() const { |
363 return surface_->IsSurfaceless(); | 360 return surface_->IsSurfaceless(); |
364 } | 361 } |
365 | 362 |
366 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 363 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
367 | 364 |
368 } // namespace gfx | 365 } // namespace gfx |
OLD | NEW |