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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/cc.gyp ('k') | cc/raster/rastering_info.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« 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