OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "ui/gl/gl_surface_overlay.h" |
| 6 |
| 7 #include "ui/gfx/geometry/rect.h" |
| 8 #include "ui/gfx/geometry/rect_f.h" |
| 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/gfx/overlay_transform.h" |
| 11 #include "ui/gl/gl_image.h" |
| 12 |
| 13 namespace gfx { |
| 14 |
| 15 GLSurfaceOverlay::GLSurfaceOverlay(int z_order, |
| 16 OverlayTransform transform, |
| 17 gl::GLImage* image, |
| 18 const Rect& bounds_rect, |
| 19 const RectF& crop_rect) |
| 20 : z_order_(z_order), |
| 21 transform_(transform), |
| 22 image_(image), |
| 23 bounds_rect_(bounds_rect), |
| 24 crop_rect_(crop_rect) {} |
| 25 |
| 26 GLSurfaceOverlay::~GLSurfaceOverlay() {} |
| 27 |
| 28 bool GLSurfaceOverlay::ScheduleOverlayPlane(AcceleratedWidget widget) const { |
| 29 return image_->ScheduleOverlayPlane(widget, z_order_, transform_, |
| 30 bounds_rect_, crop_rect_); |
| 31 } |
| 32 |
| 33 } // namespace gfx |
OLD | NEW |