| 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 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 NOTIMPLEMENTED(); | 191 NOTIMPLEMENTED(); |
| 192 return SURFACE_DEFAULT; | 192 return SURFACE_DEFAULT; |
| 193 } | 193 } |
| 194 | 194 |
| 195 gfx::VSyncProvider* GLSurface::GetVSyncProvider() { | 195 gfx::VSyncProvider* GLSurface::GetVSyncProvider() { |
| 196 return NULL; | 196 return NULL; |
| 197 } | 197 } |
| 198 | 198 |
| 199 bool GLSurface::ScheduleOverlayPlane(int z_order, | 199 bool GLSurface::ScheduleOverlayPlane(int z_order, |
| 200 gfx::OverlayTransform transform, | 200 gfx::OverlayTransform transform, |
| 201 gl::GLImage* image, | 201 GLImage* image, |
| 202 const gfx::Rect& bounds_rect, | 202 const gfx::Rect& bounds_rect, |
| 203 const gfx::RectF& crop_rect) { | 203 const gfx::RectF& crop_rect) { |
| 204 NOTIMPLEMENTED(); | 204 NOTIMPLEMENTED(); |
| 205 return false; | 205 return false; |
| 206 } | 206 } |
| 207 | 207 |
| 208 bool GLSurface::ScheduleCALayer(gl::GLImage* contents_image, | 208 bool GLSurface::ScheduleCALayer(GLImage* contents_image, |
| 209 const gfx::RectF& contents_rect, | 209 const gfx::RectF& contents_rect, |
| 210 float opacity, | 210 float opacity, |
| 211 unsigned background_color, | 211 unsigned background_color, |
| 212 unsigned edge_aa_mask, | 212 unsigned edge_aa_mask, |
| 213 const gfx::RectF& rect, | 213 const gfx::RectF& rect, |
| 214 bool is_clipped, | 214 bool is_clipped, |
| 215 const gfx::RectF& clip_rect, | 215 const gfx::RectF& clip_rect, |
| 216 const gfx::Transform& transform, | 216 const gfx::Transform& transform, |
| 217 int sorting_content_id, | 217 int sorting_content_id, |
| 218 unsigned filter) { | 218 unsigned filter) { |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 374 GLSurface::Format GLSurfaceAdapter::GetFormat() { | 374 GLSurface::Format GLSurfaceAdapter::GetFormat() { |
| 375 return surface_->GetFormat(); | 375 return surface_->GetFormat(); |
| 376 } | 376 } |
| 377 | 377 |
| 378 gfx::VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 378 gfx::VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
| 379 return surface_->GetVSyncProvider(); | 379 return surface_->GetVSyncProvider(); |
| 380 } | 380 } |
| 381 | 381 |
| 382 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, | 382 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, |
| 383 gfx::OverlayTransform transform, | 383 gfx::OverlayTransform transform, |
| 384 gl::GLImage* image, | 384 GLImage* image, |
| 385 const gfx::Rect& bounds_rect, | 385 const gfx::Rect& bounds_rect, |
| 386 const gfx::RectF& crop_rect) { | 386 const gfx::RectF& crop_rect) { |
| 387 return surface_->ScheduleOverlayPlane( | 387 return surface_->ScheduleOverlayPlane( |
| 388 z_order, transform, image, bounds_rect, crop_rect); | 388 z_order, transform, image, bounds_rect, crop_rect); |
| 389 } | 389 } |
| 390 | 390 |
| 391 bool GLSurfaceAdapter::IsSurfaceless() const { | 391 bool GLSurfaceAdapter::IsSurfaceless() const { |
| 392 return surface_->IsSurfaceless(); | 392 return surface_->IsSurfaceless(); |
| 393 } | 393 } |
| 394 | 394 |
| 395 bool GLSurfaceAdapter::FlipsVertically() const { | 395 bool GLSurfaceAdapter::FlipsVertically() const { |
| 396 return surface_->FlipsVertically(); | 396 return surface_->FlipsVertically(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 bool GLSurfaceAdapter::BuffersFlipped() const { | 399 bool GLSurfaceAdapter::BuffersFlipped() const { |
| 400 return surface_->BuffersFlipped(); | 400 return surface_->BuffersFlipped(); |
| 401 } | 401 } |
| 402 | 402 |
| 403 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 403 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 404 | 404 |
| 405 } // namespace gl | 405 } // namespace gl |
| OLD | NEW |