| 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 return false; | 283 return false; |
| 284 std::string extensions(c_extensions); | 284 std::string extensions(c_extensions); |
| 285 extensions += " "; | 285 extensions += " "; |
| 286 | 286 |
| 287 std::string delimited_name(name); | 287 std::string delimited_name(name); |
| 288 delimited_name += " "; | 288 delimited_name += " "; |
| 289 | 289 |
| 290 return extensions.find(delimited_name) != std::string::npos; | 290 return extensions.find(delimited_name) != std::string::npos; |
| 291 } | 291 } |
| 292 | 292 |
| 293 void GLSurface::OnSetSwapInterval(int interval) { |
| 294 } |
| 295 |
| 293 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} | 296 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} |
| 294 | 297 |
| 295 bool GLSurfaceAdapter::Initialize() { | 298 bool GLSurfaceAdapter::Initialize() { |
| 296 return surface_->Initialize(); | 299 return surface_->Initialize(); |
| 297 } | 300 } |
| 298 | 301 |
| 299 void GLSurfaceAdapter::Destroy() { | 302 void GLSurfaceAdapter::Destroy() { |
| 300 surface_->Destroy(); | 303 surface_->Destroy(); |
| 301 } | 304 } |
| 302 | 305 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 z_order, transform, image, bounds_rect, crop_rect); | 395 z_order, transform, image, bounds_rect, crop_rect); |
| 393 } | 396 } |
| 394 | 397 |
| 395 bool GLSurfaceAdapter::IsSurfaceless() const { | 398 bool GLSurfaceAdapter::IsSurfaceless() const { |
| 396 return surface_->IsSurfaceless(); | 399 return surface_->IsSurfaceless(); |
| 397 } | 400 } |
| 398 | 401 |
| 399 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 402 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 400 | 403 |
| 401 } // namespace gfx | 404 } // namespace gfx |
| OLD | NEW |