| Index: cc/raster/rastering_info.cc
|
| diff --git a/cc/raster/rastering_info.cc b/cc/raster/rastering_info.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..92329cea95f1a62b8d92df7098c84f710d93178a
|
| --- /dev/null
|
| +++ b/cc/raster/rastering_info.cc
|
| @@ -0,0 +1,72 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "cc/raster/rastering_info.h"
|
| +
|
| +#include "cc/raster/raster_buffer.h"
|
| +#include "cc/raster/staging_buffer_pool.h"
|
| +
|
| +namespace cc {
|
| +
|
| +RasteringInfo::RasteringInfo(
|
| + RasterBufferProvider* _raster_buffer_provider,
|
| + const Resource* _resource,
|
| + scoped_refptr<RasterSource> _raster_source,
|
| + const gfx::Rect& _content_rect,
|
| + const gfx::Rect& _invalid_content_rect,
|
| + float _contents_scale,
|
| + const RasterSource::PlaybackSettings& _playback_settings,
|
| + TileResolution _tile_resolution,
|
| + int _layer_id,
|
| + uint64_t _source_prepare_tiles_id,
|
| + const void* _tile,
|
| + uint64_t _new_content_id,
|
| + uint64_t _previous_content_id,
|
| + uint64_t _resource_content_id,
|
| + int _source_frame_number,
|
| + const base::Callback<void(bool)>& _reply)
|
| + : raster_buffer_provider(_raster_buffer_provider),
|
| + resource(_resource),
|
| + raster_source(std::move(_raster_source)),
|
| + content_rect(_content_rect),
|
| + invalid_content_rect(_invalid_content_rect),
|
| + contents_scale(_contents_scale),
|
| + playback_settings(_playback_settings),
|
| + tile_resolution(_tile_resolution),
|
| + layer_id(_layer_id),
|
| + source_prepare_tiles_id(_source_prepare_tiles_id),
|
| + tile(_tile),
|
| + new_content_id(_new_content_id),
|
| + previous_content_id(_previous_content_id),
|
| + resource_content_id(_resource_content_id),
|
| + source_frame_number(_source_frame_number),
|
| + reply(_reply) {}
|
| +
|
| +RasteringInfo::~RasteringInfo() {}
|
| +
|
| +scoped_ptr<RasteringInfo> RasteringInfo::Create(
|
| + RasterBufferProvider* raster_buffer_provider,
|
| + const Resource* resource,
|
| + scoped_refptr<RasterSource> raster_source,
|
| + const gfx::Rect& content_rect,
|
| + const gfx::Rect& invalid_content_rect,
|
| + float contents_scale,
|
| + const RasterSource::PlaybackSettings& playback_settings,
|
| + TileResolution tile_resolution,
|
| + int layer_id,
|
| + uint64_t source_prepare_tiles_id,
|
| + const void* tile,
|
| + uint64_t new_content_id,
|
| + uint64_t previous_content_id,
|
| + uint64_t resource_content_id,
|
| + int source_frame_number,
|
| + const base::Callback<void(bool)>& reply) {
|
| + return make_scoped_ptr<RasteringInfo>(new RasteringInfo(
|
| + raster_buffer_provider, resource, raster_source, content_rect,
|
| + invalid_content_rect, contents_scale, playback_settings, tile_resolution,
|
| + layer_id, source_prepare_tiles_id, tile, new_content_id,
|
| + previous_content_id, resource_content_id, source_frame_number, reply));
|
| +}
|
| +
|
| +} // namespace cc
|
|
|