| 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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 } | 92 } |
| 93 return initialized; | 93 return initialized; |
| 94 } | 94 } |
| 95 | 95 |
| 96 GLSurface::GLSurface() {} | 96 GLSurface::GLSurface() {} |
| 97 | 97 |
| 98 bool GLSurface::Initialize() { | 98 bool GLSurface::Initialize() { |
| 99 return true; | 99 return true; |
| 100 } | 100 } |
| 101 | 101 |
| 102 bool GLSurface::Resize(const gfx::Size& size) { | 102 bool GLSurface::Resize(const gfx::Size& size, float scale_factor) { |
| 103 NOTIMPLEMENTED(); | 103 NOTIMPLEMENTED(); |
| 104 return false; | 104 return false; |
| 105 } | 105 } |
| 106 | 106 |
| 107 bool GLSurface::Recreate() { | 107 bool GLSurface::Recreate() { |
| 108 NOTIMPLEMENTED(); | 108 NOTIMPLEMENTED(); |
| 109 return false; | 109 return false; |
| 110 } | 110 } |
| 111 | 111 |
| 112 bool GLSurface::DeferDraws() { | 112 bool GLSurface::DeferDraws() { |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} | 225 GLSurfaceAdapter::GLSurfaceAdapter(GLSurface* surface) : surface_(surface) {} |
| 226 | 226 |
| 227 bool GLSurfaceAdapter::Initialize() { | 227 bool GLSurfaceAdapter::Initialize() { |
| 228 return surface_->Initialize(); | 228 return surface_->Initialize(); |
| 229 } | 229 } |
| 230 | 230 |
| 231 void GLSurfaceAdapter::Destroy() { | 231 void GLSurfaceAdapter::Destroy() { |
| 232 surface_->Destroy(); | 232 surface_->Destroy(); |
| 233 } | 233 } |
| 234 | 234 |
| 235 bool GLSurfaceAdapter::Resize(const gfx::Size& size) { | 235 bool GLSurfaceAdapter::Resize(const gfx::Size& size, float scale_factor) { |
| 236 return surface_->Resize(size); | 236 return surface_->Resize(size, scale_factor); |
| 237 } | 237 } |
| 238 | 238 |
| 239 bool GLSurfaceAdapter::Recreate() { | 239 bool GLSurfaceAdapter::Recreate() { |
| 240 return surface_->Recreate(); | 240 return surface_->Recreate(); |
| 241 } | 241 } |
| 242 | 242 |
| 243 bool GLSurfaceAdapter::DeferDraws() { | 243 bool GLSurfaceAdapter::DeferDraws() { |
| 244 return surface_->DeferDraws(); | 244 return surface_->DeferDraws(); |
| 245 } | 245 } |
| 246 | 246 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 327 z_order, transform, image, bounds_rect, crop_rect); | 327 z_order, transform, image, bounds_rect, crop_rect); |
| 328 } | 328 } |
| 329 | 329 |
| 330 bool GLSurfaceAdapter::IsSurfaceless() const { | 330 bool GLSurfaceAdapter::IsSurfaceless() const { |
| 331 return surface_->IsSurfaceless(); | 331 return surface_->IsSurfaceless(); |
| 332 } | 332 } |
| 333 | 333 |
| 334 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 334 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 335 | 335 |
| 336 } // namespace gfx | 336 } // namespace gfx |
| OLD | NEW |