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

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

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/cc.gyp ('k') | cc/raster/rastering_info.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 #ifndef CC_RASTER_RASTERING_INFO_H_
6 #define CC_RASTER_RASTERING_INFO_H_
7
8 #include <stdint.h>
9
10 #include "base/callback_forward.h"
11 #include "base/macros.h"
12 #include "base/memory/scoped_ptr.h"
13 #include "cc/base/cc_export.h"
14 #include "cc/playback/raster_source.h"
15 #include "cc/tiles/tile_priority.h"
16 #include "ui/gfx/geometry/rect.h"
17
18 namespace cc {
19 class RasterBuffer;
20 class RasterBufferProvider;
21 class RasterSource;
22 class Resource;
23 struct StagingBuffer;
24
25 struct CC_EXPORT RasteringInfo final {
26 public:
27 ~RasteringInfo();
28 static scoped_ptr<RasteringInfo> Create(
29 RasterBufferProvider* raster_buffer_provider,
30 const Resource* resource,
31 scoped_refptr<RasterSource> raster_source,
32 const gfx::Rect& content_rect,
33 const gfx::Rect& invalid_content_rect,
34 float contents_scale,
35 const RasterSource::PlaybackSettings& playback_settings,
36 TileResolution tile_resolution,
37 int layer_id,
38 uint64_t source_prepare_tiles_id,
39 const void* tile,
40 uint64_t new_content_id,
41 uint64_t previous_content_id,
42 uint64_t resource_content_id,
43 int source_frame_number,
44 const base::Callback<void(bool)>& reply);
45
46 RasterBufferProvider* raster_buffer_provider;
47 const Resource* resource;
48 scoped_refptr<RasterSource> raster_source;
49 gfx::Rect content_rect;
50 gfx::Rect invalid_content_rect;
51 float contents_scale;
52 RasterSource::PlaybackSettings playback_settings;
53 TileResolution tile_resolution;
54 int layer_id;
55 uint64_t source_prepare_tiles_id;
56 const void* tile;
57 uint64_t new_content_id;
58 uint64_t previous_content_id;
59 uint64_t resource_content_id;
60 int source_frame_number;
61 const base::Callback<void(bool)> reply;
62 scoped_ptr<StagingBuffer> staging_buffer;
63 scoped_ptr<RasterBuffer> raster_buffer;
64
65 private:
66 RasteringInfo(RasterBufferProvider* raster_buffer_provider,
67 const Resource* resource,
68 scoped_refptr<RasterSource> raster_source,
69 const gfx::Rect& content_rect,
70 const gfx::Rect& invalid_content_rect,
71 float contents_scale,
72 const RasterSource::PlaybackSettings& playback_settings,
73 TileResolution tile_resolution,
74 int layer_id,
75 uint64_t source_prepare_tiles_id,
76 const void* tile,
77 uint64_t new_content_id,
78 uint64_t previous_content_id,
79 uint64_t resource_content_id,
80 int source_frame_number,
81 const base::Callback<void(bool)>& reply);
82
83 DISALLOW_COPY_AND_ASSIGN(RasteringInfo);
84 };
85
86 } // namespace cc
87
88 #endif // CC_RASTER_RASTERING_INFO_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/raster/rastering_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698