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

Unified Diff: cc/resources/raster_worker_pool.h

Issue 17625002: cc: Eliminate tile.h's dependency on tile_manager.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: spacing update Created 7 years, 6 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
Index: cc/resources/raster_worker_pool.h
diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h
index c868be757903354a754900206cfab8e503970dcf..dfa15f4e66b9dc3dcf675cf8516b3128e8b72adb 100644
--- a/cc/resources/raster_worker_pool.h
+++ b/cc/resources/raster_worker_pool.h
@@ -11,7 +11,7 @@
#include "cc/debug/rendering_stats_instrumentation.h"
#include "cc/resources/picture_pile_impl.h"
#include "cc/resources/resource_provider.h"
-#include "cc/resources/tile_priority.h"
+#include "cc/resources/tile_data.h"
#include "cc/resources/worker_pool.h"
class SkDevice;
@@ -76,29 +76,6 @@ template <> struct hash<cc::internal::RasterWorkerPoolTask*> {
namespace cc {
-// Low quality implies no lcd test;
-// high quality implies lcd text.
-// Note that the order of these matters, from "better" to "worse" in terms of
-// quality.
-// TODO(vmpstr): Find a better place for this.
-enum RasterMode {
- HIGH_QUALITY_RASTER_MODE = 0,
- HIGH_QUALITY_NO_LCD_RASTER_MODE = 1,
- LOW_QUALITY_RASTER_MODE = 2,
- NUM_RASTER_MODES = 3
-};
-
-// Data that is passed to raster tasks.
-// TODO(vmpstr): Find a better place for this.
-struct RasterTaskMetadata {
- scoped_ptr<base::Value> AsValue() const;
- bool is_tile_in_pending_tree_now_bin;
- TileResolution tile_resolution;
- int layer_id;
- const void* tile_id;
- int source_frame_number;
-};
-
class CC_EXPORT RasterWorkerPoolClient {
public:
virtual bool ShouldForceTasksRequiredForActivationToComplete() const = 0;

Powered by Google App Engine
This is Rietveld 408576698