| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 bool GLSurface::ScheduleCALayer(const ui::CARendererLayerParams& params) { | 149 bool GLSurface::ScheduleCALayer(const ui::CARendererLayerParams& params) { |
| 150 NOTIMPLEMENTED(); | 150 NOTIMPLEMENTED(); |
| 151 return false; | 151 return false; |
| 152 } | 152 } |
| 153 | 153 |
| 154 void GLSurface::ScheduleCALayerInUseQuery( | 154 void GLSurface::ScheduleCALayerInUseQuery( |
| 155 std::vector<CALayerInUseQuery> queries) { | 155 std::vector<CALayerInUseQuery> queries) { |
| 156 NOTIMPLEMENTED(); | 156 NOTIMPLEMENTED(); |
| 157 } | 157 } |
| 158 | 158 |
| 159 bool GLSurface::ScheduleDCLayer(const ui::DCRendererLayerParams& params) { |
| 160 NOTIMPLEMENTED(); |
| 161 return false; |
| 162 } |
| 163 |
| 159 bool GLSurface::IsSurfaceless() const { | 164 bool GLSurface::IsSurfaceless() const { |
| 160 return false; | 165 return false; |
| 161 } | 166 } |
| 162 | 167 |
| 163 bool GLSurface::FlipsVertically() const { | 168 bool GLSurface::FlipsVertically() const { |
| 164 return false; | 169 return false; |
| 165 } | 170 } |
| 166 | 171 |
| 167 bool GLSurface::BuffersFlipped() const { | 172 bool GLSurface::BuffersFlipped() const { |
| 168 return false; | 173 return false; |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 342 | 347 |
| 343 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, | 348 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, |
| 344 gfx::OverlayTransform transform, | 349 gfx::OverlayTransform transform, |
| 345 GLImage* image, | 350 GLImage* image, |
| 346 const gfx::Rect& bounds_rect, | 351 const gfx::Rect& bounds_rect, |
| 347 const gfx::RectF& crop_rect) { | 352 const gfx::RectF& crop_rect) { |
| 348 return surface_->ScheduleOverlayPlane( | 353 return surface_->ScheduleOverlayPlane( |
| 349 z_order, transform, image, bounds_rect, crop_rect); | 354 z_order, transform, image, bounds_rect, crop_rect); |
| 350 } | 355 } |
| 351 | 356 |
| 357 bool GLSurfaceAdapter::ScheduleDCLayer( |
| 358 const ui::DCRendererLayerParams& params) { |
| 359 return surface_->ScheduleDCLayer(params); |
| 360 } |
| 361 |
| 352 bool GLSurfaceAdapter::IsSurfaceless() const { | 362 bool GLSurfaceAdapter::IsSurfaceless() const { |
| 353 return surface_->IsSurfaceless(); | 363 return surface_->IsSurfaceless(); |
| 354 } | 364 } |
| 355 | 365 |
| 356 bool GLSurfaceAdapter::FlipsVertically() const { | 366 bool GLSurfaceAdapter::FlipsVertically() const { |
| 357 return surface_->FlipsVertically(); | 367 return surface_->FlipsVertically(); |
| 358 } | 368 } |
| 359 | 369 |
| 360 bool GLSurfaceAdapter::BuffersFlipped() const { | 370 bool GLSurfaceAdapter::BuffersFlipped() const { |
| 361 return surface_->BuffersFlipped(); | 371 return surface_->BuffersFlipped(); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 389 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { | 399 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { |
| 390 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); | 400 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); |
| 391 } | 401 } |
| 392 | 402 |
| 393 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; | 403 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; |
| 394 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = | 404 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = |
| 395 default; | 405 default; |
| 396 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; | 406 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; |
| 397 | 407 |
| 398 } // namespace gl | 408 } // namespace gl |
| OLD | NEW |