| 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 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 | 219 |
| 220 unsigned GLSurface::GetFormat() { | 220 unsigned GLSurface::GetFormat() { |
| 221 NOTIMPLEMENTED(); | 221 NOTIMPLEMENTED(); |
| 222 return 0; | 222 return 0; |
| 223 } | 223 } |
| 224 | 224 |
| 225 VSyncProvider* GLSurface::GetVSyncProvider() { | 225 VSyncProvider* GLSurface::GetVSyncProvider() { |
| 226 return NULL; | 226 return NULL; |
| 227 } | 227 } |
| 228 | 228 |
| 229 bool GLSurface::ScheduleOverlayPlane(int z_order, | |
| 230 OverlayTransform transform, | |
| 231 GLImage* image, | |
| 232 const Rect& bounds_rect, | |
| 233 const RectF& crop_rect) { | |
| 234 NOTIMPLEMENTED(); | |
| 235 return false; | |
| 236 } | |
| 237 | |
| 238 GLSurface* GLSurface::GetCurrent() { | 229 GLSurface* GLSurface::GetCurrent() { |
| 239 return current_surface_.Pointer()->Get(); | 230 return current_surface_.Pointer()->Get(); |
| 240 } | 231 } |
| 241 | 232 |
| 242 GLSurface::~GLSurface() { | 233 GLSurface::~GLSurface() { |
| 243 if (GetCurrent() == this) | 234 if (GetCurrent() == this) |
| 244 SetCurrent(NULL); | 235 SetCurrent(NULL); |
| 245 } | 236 } |
| 246 | 237 |
| 247 void GLSurface::SetCurrent(GLSurface* surface) { | 238 void GLSurface::SetCurrent(GLSurface* surface) { |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 336 } | 327 } |
| 337 | 328 |
| 338 unsigned GLSurfaceAdapter::GetFormat() { | 329 unsigned GLSurfaceAdapter::GetFormat() { |
| 339 return surface_->GetFormat(); | 330 return surface_->GetFormat(); |
| 340 } | 331 } |
| 341 | 332 |
| 342 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { | 333 VSyncProvider* GLSurfaceAdapter::GetVSyncProvider() { |
| 343 return surface_->GetVSyncProvider(); | 334 return surface_->GetVSyncProvider(); |
| 344 } | 335 } |
| 345 | 336 |
| 346 bool GLSurfaceAdapter::ScheduleOverlayPlane(int z_order, | |
| 347 OverlayTransform transform, | |
| 348 GLImage* image, | |
| 349 const Rect& bounds_rect, | |
| 350 const RectF& crop_rect) { | |
| 351 return surface_->ScheduleOverlayPlane( | |
| 352 z_order, transform, image, bounds_rect, crop_rect); | |
| 353 } | |
| 354 | |
| 355 GLSurfaceAdapter::~GLSurfaceAdapter() {} | 337 GLSurfaceAdapter::~GLSurfaceAdapter() {} |
| 356 | 338 |
| 357 } // namespace gfx | 339 } // namespace gfx |
| OLD | NEW |