| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_overlay.h" | 5 #include "ui/gl/gl_surface_overlay.h" |
| 6 | 6 |
| 7 #include "ui/gfx/geometry/rect.h" | 7 #include "ui/gfx/geometry/rect.h" |
| 8 #include "ui/gfx/geometry/rect_f.h" | 8 #include "ui/gfx/geometry/rect_f.h" |
| 9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
| 10 #include "ui/gfx/overlay_transform.h" | 10 #include "ui/gfx/overlay_transform.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 image_(image), | 22 image_(image), |
| 23 bounds_rect_(bounds_rect), | 23 bounds_rect_(bounds_rect), |
| 24 crop_rect_(crop_rect) {} | 24 crop_rect_(crop_rect) {} |
| 25 | 25 |
| 26 GLSurfaceOverlay::GLSurfaceOverlay(const GLSurfaceOverlay& other) = default; | 26 GLSurfaceOverlay::GLSurfaceOverlay(const GLSurfaceOverlay& other) = default; |
| 27 | 27 |
| 28 GLSurfaceOverlay::~GLSurfaceOverlay() {} | 28 GLSurfaceOverlay::~GLSurfaceOverlay() {} |
| 29 | 29 |
| 30 bool GLSurfaceOverlay::ScheduleOverlayPlane( | 30 bool GLSurfaceOverlay::ScheduleOverlayPlane( |
| 31 gfx::AcceleratedWidget widget) const { | 31 gfx::AcceleratedWidget widget) const { |
| 32 image_->Flush(); |
| 32 return image_->ScheduleOverlayPlane(widget, z_order_, transform_, | 33 return image_->ScheduleOverlayPlane(widget, z_order_, transform_, |
| 33 bounds_rect_, crop_rect_); | 34 bounds_rect_, crop_rect_); |
| 34 } | 35 } |
| 35 | 36 |
| 36 } // namespace gl | 37 } // namespace gl |
| OLD | NEW |