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 "android_webview/browser/child_frame.h" | 5 #include "android_webview/browser/child_frame.h" |
6 | 6 |
| 7 #include <utility> |
| 8 |
7 #include "cc/output/compositor_frame.h" | 9 #include "cc/output/compositor_frame.h" |
8 | 10 |
9 namespace android_webview { | 11 namespace android_webview { |
10 | 12 |
11 ChildFrame::ChildFrame(scoped_ptr<cc::CompositorFrame> frame, | 13 ChildFrame::ChildFrame(scoped_ptr<cc::CompositorFrame> frame, |
12 unsigned int compositor_id, | 14 unsigned int compositor_id, |
13 bool viewport_rect_for_tile_priority_empty, | 15 bool viewport_rect_for_tile_priority_empty, |
14 const gfx::Transform& transform_for_tile_priority, | 16 const gfx::Transform& transform_for_tile_priority, |
15 bool offscreen_pre_raster, | 17 bool offscreen_pre_raster, |
16 bool is_layer) | 18 bool is_layer) |
17 : frame(frame.Pass()), | 19 : frame(std::move(frame)), |
18 compositor_id(compositor_id), | 20 compositor_id(compositor_id), |
19 viewport_rect_for_tile_priority_empty( | 21 viewport_rect_for_tile_priority_empty( |
20 viewport_rect_for_tile_priority_empty), | 22 viewport_rect_for_tile_priority_empty), |
21 transform_for_tile_priority(transform_for_tile_priority), | 23 transform_for_tile_priority(transform_for_tile_priority), |
22 offscreen_pre_raster(offscreen_pre_raster), | 24 offscreen_pre_raster(offscreen_pre_raster), |
23 is_layer(is_layer) {} | 25 is_layer(is_layer) {} |
24 | 26 |
25 ChildFrame::~ChildFrame() { | 27 ChildFrame::~ChildFrame() { |
26 } | 28 } |
27 | 29 |
28 } // namespace webview | 30 } // namespace webview |
OLD | NEW |