Chromium Code Reviews| 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 <memory> | |
|
boliu
2016/06/13 15:30:44
not needed if header includes it already
hush (inactive)
2016/06/14 23:48:28
removed
| |
| 6 | |
| 5 #include "android_webview/browser/child_frame.h" | 7 #include "android_webview/browser/child_frame.h" |
|
boliu
2016/06/13 15:30:44
style guide says the .h file of this .cc file is t
boliu
2016/06/15 00:04:02
not done yet :p
hush (inactive)
2016/06/15 18:10:24
added a blank line
| |
| 6 | |
| 7 #include <utility> | |
| 8 | |
| 9 #include "cc/output/compositor_frame.h" | 8 #include "cc/output/compositor_frame.h" |
| 10 | 9 |
| 11 namespace android_webview { | 10 namespace android_webview { |
| 12 | 11 |
| 13 ChildFrame::ChildFrame(uint32_t output_surface_id, | 12 ChildFrame::ChildFrame(uint32_t output_surface_id, |
| 14 std::unique_ptr<cc::CompositorFrame> frame, | 13 std::unique_ptr<cc::CompositorFrame> frame, |
| 15 uint32_t compositor_id, | 14 CompositorID compositor_id, |
| 16 bool viewport_rect_for_tile_priority_empty, | 15 bool viewport_rect_for_tile_priority_empty, |
| 17 const gfx::Transform& transform_for_tile_priority, | 16 const gfx::Transform& transform_for_tile_priority, |
| 18 bool offscreen_pre_raster, | 17 bool offscreen_pre_raster, |
| 19 bool is_layer) | 18 bool is_layer) |
| 20 : output_surface_id(output_surface_id), | 19 : output_surface_id(output_surface_id), |
| 21 frame(std::move(frame)), | 20 frame(std::move(frame)), |
| 22 compositor_id(compositor_id), | 21 compositor_id(compositor_id), |
| 23 viewport_rect_for_tile_priority_empty( | 22 viewport_rect_for_tile_priority_empty( |
| 24 viewport_rect_for_tile_priority_empty), | 23 viewport_rect_for_tile_priority_empty), |
| 25 transform_for_tile_priority(transform_for_tile_priority), | 24 transform_for_tile_priority(transform_for_tile_priority), |
| 26 offscreen_pre_raster(offscreen_pre_raster), | 25 offscreen_pre_raster(offscreen_pre_raster), |
| 27 is_layer(is_layer) {} | 26 is_layer(is_layer) {} |
| 28 | 27 |
| 29 ChildFrame::~ChildFrame() { | 28 ChildFrame::~ChildFrame() { |
| 30 } | 29 } |
| 31 | 30 |
| 32 } // namespace webview | 31 } // namespace webview |
| OLD | NEW |