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

Side by Side Diff: cc/raster/rastering_info.cc

Issue 1863053002: cc: Encapsulate rastering related data in RasteringInfo. Base URL: https://chromium.googlesource.com/chromium/src.git@refactor_one_copy
Patch Set: 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
« no previous file with comments | « cc/raster/rastering_info.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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 "cc/raster/rastering_info.h"
6
7 #include "cc/raster/raster_buffer.h"
8 #include "cc/raster/staging_buffer_pool.h"
9
10 namespace cc {
11
12 RasteringInfo::RasteringInfo(
13 RasterBufferProvider* _raster_buffer_provider,
14 const Resource* _resource,
15 scoped_refptr<RasterSource> _raster_source,
16 const gfx::Rect& _content_rect,
17 const gfx::Rect& _invalid_content_rect,
18 float _contents_scale,
19 const RasterSource::PlaybackSettings& _playback_settings,
20 TileResolution _tile_resolution,
21 int _layer_id,
22 uint64_t _source_prepare_tiles_id,
23 const void* _tile,
24 uint64_t _new_content_id,
25 uint64_t _previous_content_id,
26 uint64_t _resource_content_id,
27 int _source_frame_number,
28 const base::Callback<void(bool)>& _reply)
29 : raster_buffer_provider(_raster_buffer_provider),
30 resource(_resource),
31 raster_source(std::move(_raster_source)),
32 content_rect(_content_rect),
33 invalid_content_rect(_invalid_content_rect),
34 contents_scale(_contents_scale),
35 playback_settings(_playback_settings),
36 tile_resolution(_tile_resolution),
37 layer_id(_layer_id),
38 source_prepare_tiles_id(_source_prepare_tiles_id),
39 tile(_tile),
40 new_content_id(_new_content_id),
41 previous_content_id(_previous_content_id),
42 resource_content_id(_resource_content_id),
43 source_frame_number(_source_frame_number),
44 reply(_reply) {}
45
46 RasteringInfo::~RasteringInfo() {}
47
48 scoped_ptr<RasteringInfo> RasteringInfo::Create(
49 RasterBufferProvider* raster_buffer_provider,
50 const Resource* resource,
51 scoped_refptr<RasterSource> raster_source,
52 const gfx::Rect& content_rect,
53 const gfx::Rect& invalid_content_rect,
54 float contents_scale,
55 const RasterSource::PlaybackSettings& playback_settings,
56 TileResolution tile_resolution,
57 int layer_id,
58 uint64_t source_prepare_tiles_id,
59 const void* tile,
60 uint64_t new_content_id,
61 uint64_t previous_content_id,
62 uint64_t resource_content_id,
63 int source_frame_number,
64 const base::Callback<void(bool)>& reply) {
65 return make_scoped_ptr<RasteringInfo>(new RasteringInfo(
66 raster_buffer_provider, resource, raster_source, content_rect,
67 invalid_content_rect, contents_scale, playback_settings, tile_resolution,
68 layer_id, source_prepare_tiles_id, tile, new_content_id,
69 previous_content_id, resource_content_id, source_frame_number, reply));
70 }
71
72 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/rastering_info.h ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698