Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Side by Side Diff: android_webview/browser/child_frame.cc

Issue 1852513003: Convert //android_webview to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: git is hard Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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> 7 #include <utility>
8 8
9 #include "cc/output/compositor_frame.h" 9 #include "cc/output/compositor_frame.h"
10 10
11 namespace android_webview { 11 namespace android_webview {
12 12
13 ChildFrame::ChildFrame(uint32_t output_surface_id, 13 ChildFrame::ChildFrame(uint32_t output_surface_id,
14 scoped_ptr<cc::CompositorFrame> frame, 14 std::unique_ptr<cc::CompositorFrame> frame,
15 uint32_t compositor_id, 15 uint32_t compositor_id,
16 bool viewport_rect_for_tile_priority_empty, 16 bool viewport_rect_for_tile_priority_empty,
17 const gfx::Transform& transform_for_tile_priority, 17 const gfx::Transform& transform_for_tile_priority,
18 bool offscreen_pre_raster, 18 bool offscreen_pre_raster,
19 bool is_layer) 19 bool is_layer)
20 : output_surface_id(output_surface_id), 20 : output_surface_id(output_surface_id),
21 frame(std::move(frame)), 21 frame(std::move(frame)),
22 compositor_id(compositor_id), 22 compositor_id(compositor_id),
23 viewport_rect_for_tile_priority_empty( 23 viewport_rect_for_tile_priority_empty(
24 viewport_rect_for_tile_priority_empty), 24 viewport_rect_for_tile_priority_empty),
25 transform_for_tile_priority(transform_for_tile_priority), 25 transform_for_tile_priority(transform_for_tile_priority),
26 offscreen_pre_raster(offscreen_pre_raster), 26 offscreen_pre_raster(offscreen_pre_raster),
27 is_layer(is_layer) {} 27 is_layer(is_layer) {}
28 28
29 ChildFrame::~ChildFrame() { 29 ChildFrame::~ChildFrame() {
30 } 30 }
31 31
32 } // namespace webview 32 } // namespace webview
OLDNEW
« no previous file with comments | « android_webview/browser/child_frame.h ('k') | android_webview/browser/deferred_gpu_command_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698