Index: cc/raster/rastering_info.h |
diff --git a/cc/raster/rastering_info.h b/cc/raster/rastering_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ee4bba5b884e3d03375b90deb567e2df831aa3ca |
--- /dev/null |
+++ b/cc/raster/rastering_info.h |
@@ -0,0 +1,88 @@ |
+// 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. |
+ |
+#ifndef CC_RASTER_RASTERING_INFO_H_ |
+#define CC_RASTER_RASTERING_INFO_H_ |
+ |
+#include <stdint.h> |
+ |
+#include "base/callback_forward.h" |
+#include "base/macros.h" |
+#include "base/memory/scoped_ptr.h" |
+#include "cc/base/cc_export.h" |
+#include "cc/playback/raster_source.h" |
+#include "cc/tiles/tile_priority.h" |
+#include "ui/gfx/geometry/rect.h" |
+ |
+namespace cc { |
+class RasterBuffer; |
+class RasterBufferProvider; |
+class RasterSource; |
+class Resource; |
+struct StagingBuffer; |
+ |
+struct CC_EXPORT RasteringInfo final { |
+ public: |
+ ~RasteringInfo(); |
+ static scoped_ptr<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); |
+ |
+ RasterBufferProvider* raster_buffer_provider; |
+ const Resource* resource; |
+ scoped_refptr<RasterSource> raster_source; |
+ gfx::Rect content_rect; |
+ gfx::Rect invalid_content_rect; |
+ float contents_scale; |
+ 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; |
+ scoped_ptr<StagingBuffer> staging_buffer; |
+ scoped_ptr<RasterBuffer> raster_buffer; |
+ |
+ private: |
+ 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); |
+ |
+ DISALLOW_COPY_AND_ASSIGN(RasteringInfo); |
+}; |
+ |
+} // namespace cc |
+ |
+#endif // CC_RASTER_RASTERING_INFO_H_ |