OLD | NEW |
(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_ |
OLD | NEW |