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 #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 |
OLD | NEW |