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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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) { | 159 bool GLSurface::ScheduleDCLayer(const ui::DCRendererLayerParams& params) { |
160 NOTIMPLEMENTED(); | 160 NOTIMPLEMENTED(); |
161 return false; | 161 return false; |
162 } | 162 } |
163 | 163 |
| 164 bool GLSurface::SetEnableDCLayers(bool enable) { |
| 165 NOTIMPLEMENTED(); |
| 166 return false; |
| 167 } |
| 168 |
164 bool GLSurface::IsSurfaceless() const { | 169 bool GLSurface::IsSurfaceless() const { |
165 return false; | 170 return false; |
166 } | 171 } |
167 | 172 |
168 bool GLSurface::FlipsVertically() const { | 173 bool GLSurface::FlipsVertically() const { |
169 return false; | 174 return false; |
170 } | 175 } |
171 | 176 |
172 bool GLSurface::BuffersFlipped() const { | 177 bool GLSurface::BuffersFlipped() const { |
173 return false; | 178 return false; |
174 } | 179 } |
175 | 180 |
176 bool GLSurface::SupportsSetDrawRectangle() const { | 181 bool GLSurface::SupportsDCLayers() const { |
177 return false; | 182 return false; |
178 } | 183 } |
179 | 184 |
180 bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) { | 185 bool GLSurface::SetDrawRectangle(const gfx::Rect& rect) { |
181 return false; | 186 return false; |
182 } | 187 } |
183 | 188 |
184 gfx::Vector2d GLSurface::GetDrawOffset() const { | 189 gfx::Vector2d GLSurface::GetDrawOffset() const { |
185 return gfx::Vector2d(); | 190 return gfx::Vector2d(); |
186 } | 191 } |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
352 const gfx::RectF& crop_rect) { | 357 const gfx::RectF& crop_rect) { |
353 return surface_->ScheduleOverlayPlane( | 358 return surface_->ScheduleOverlayPlane( |
354 z_order, transform, image, bounds_rect, crop_rect); | 359 z_order, transform, image, bounds_rect, crop_rect); |
355 } | 360 } |
356 | 361 |
357 bool GLSurfaceAdapter::ScheduleDCLayer( | 362 bool GLSurfaceAdapter::ScheduleDCLayer( |
358 const ui::DCRendererLayerParams& params) { | 363 const ui::DCRendererLayerParams& params) { |
359 return surface_->ScheduleDCLayer(params); | 364 return surface_->ScheduleDCLayer(params); |
360 } | 365 } |
361 | 366 |
| 367 bool GLSurfaceAdapter::SetEnableDCLayers(bool enable) { |
| 368 return surface_->SetEnableDCLayers(enable); |
| 369 } |
| 370 |
362 bool GLSurfaceAdapter::IsSurfaceless() const { | 371 bool GLSurfaceAdapter::IsSurfaceless() const { |
363 return surface_->IsSurfaceless(); | 372 return surface_->IsSurfaceless(); |
364 } | 373 } |
365 | 374 |
366 bool GLSurfaceAdapter::FlipsVertically() const { | 375 bool GLSurfaceAdapter::FlipsVertically() const { |
367 return surface_->FlipsVertically(); | 376 return surface_->FlipsVertically(); |
368 } | 377 } |
369 | 378 |
370 bool GLSurfaceAdapter::BuffersFlipped() const { | 379 bool GLSurfaceAdapter::BuffersFlipped() const { |
371 return surface_->BuffersFlipped(); | 380 return surface_->BuffersFlipped(); |
372 } | 381 } |
373 | 382 |
374 bool GLSurfaceAdapter::SupportsSetDrawRectangle() const { | 383 bool GLSurfaceAdapter::SupportsDCLayers() const { |
375 return surface_->SupportsSetDrawRectangle(); | 384 return surface_->SupportsDCLayers(); |
376 } | 385 } |
377 | 386 |
378 bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) { | 387 bool GLSurfaceAdapter::SetDrawRectangle(const gfx::Rect& rect) { |
379 return surface_->SetDrawRectangle(rect); | 388 return surface_->SetDrawRectangle(rect); |
380 } | 389 } |
381 | 390 |
382 gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const { | 391 gfx::Vector2d GLSurfaceAdapter::GetDrawOffset() const { |
383 return surface_->GetDrawOffset(); | 392 return surface_->GetDrawOffset(); |
384 } | 393 } |
385 | 394 |
(...skipping 13 matching lines...) Expand all Loading... |
399 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { | 408 scoped_refptr<GLSurface> InitializeGLSurface(scoped_refptr<GLSurface> surface) { |
400 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); | 409 return InitializeGLSurfaceWithFormat(surface, GLSurfaceFormat()); |
401 } | 410 } |
402 | 411 |
403 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; | 412 GLSurface::CALayerInUseQuery::CALayerInUseQuery() = default; |
404 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = | 413 GLSurface::CALayerInUseQuery::CALayerInUseQuery(const CALayerInUseQuery&) = |
405 default; | 414 default; |
406 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; | 415 GLSurface::CALayerInUseQuery::~CALayerInUseQuery() = default; |
407 | 416 |
408 } // namespace gl | 417 } // namespace gl |
OLD | NEW |