| 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 <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 212 const RectF& clip_rect, | 212 const RectF& clip_rect, |
| 213 const Transform& transform) { | 213 const Transform& transform) { |
| 214 NOTIMPLEMENTED(); | 214 NOTIMPLEMENTED(); |
| 215 return false; | 215 return false; |
| 216 } | 216 } |
| 217 | 217 |
| 218 bool GLSurface::IsSurfaceless() const { | 218 bool GLSurface::IsSurfaceless() const { |
| 219 return false; | 219 return false; |
| 220 } | 220 } |
| 221 | 221 |
| 222 bool GLSurface::FlipsVertically() const { |
| 223 return false; |
| 224 } |
| 225 |
| 222 GLSurface* GLSurface::GetCurrent() { | 226 GLSurface* GLSurface::GetCurrent() { |
| 223 return current_surface_.Pointer()->Get(); | 227 return current_surface_.Pointer()->Get(); |
| 224 } | 228 } |
| 225 | 229 |
| 226 GLSurface::~GLSurface() { | 230 GLSurface::~GLSurface() { |
| 227 if (GetCurrent() == this) | 231 if (GetCurrent() == this) |
| 228 SetCurrent(NULL); | 232 SetCurrent(NULL); |
| 229 } | 233 } |
| 230 | 234 |
| 231 void GLSurface::SetCurrent(GLSurface* surface) { | 235 void GLSurface::SetCurrent(GLSurface* surface) { |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 const Rect& bounds_rect, | 376 const Rect& bounds_rect, |
| 373 const RectF& crop_rect) { | 377 const RectF& crop_rect) { |
| 374 return surface_->ScheduleOverlayPlane( | 378 return surface_->ScheduleOverlayPlane( |
| 375 z_order, transform, image, bounds_rect, crop_rect); | 379 z_order, transform, image, bounds_rect, crop_rect); |
| 376 } | 380 } |
| 377 | 381 |
| 378 bool GLSurfaceAdapter::IsSurfaceless() const { | 382 bool GLSurfaceAdapter::IsSurfaceless() const { |
| 379 return surface_->IsSurfaceless(); | 383 return surface_->IsSurfaceless(); |
| 380 } | 384 } |
| 381 | 385 |
| 386 bool GLSurfaceAdapter::FlipsVertically() const { |
| 387 return surface_->FlipsVertically(); |
| 388 } |
| 389 |
| 382 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 390 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 383 | 391 |
| 384 } // namespace gfx | 392 } // namespace gfx |
| OLD | NEW |