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

Unified Diff: cc/resources/tile_data.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/tile_data.h
diff --git a/cc/resources/tile_data.h b/cc/resources/tile_data.h
new file mode 100644
index 0000000000000000000000000000000000000000..037a44532881546911c6048da4b4a5ebdf655204
--- /dev/null
+++ b/cc/resources/tile_data.h
@@ -0,0 +1,42 @@
+// Copyright 2013 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_RESOURCES_TILE_DATA_H_
+#define CC_RESOURCES_TILE_DATA_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "cc/resources/tile_priority.h"
+
+namespace base {
+class Value;
+}
+
+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.
+enum RasterMode {
+ HIGH_QUALITY_RASTER_MODE = 0,
+ HIGH_QUALITY_NO_LCD_RASTER_MODE = 1,
+ LOW_QUALITY_RASTER_MODE = 2,
+ NUM_RASTER_MODES = 3
+};
+
+scoped_ptr<base::Value> RasterModeAsValue(RasterMode mode);
+
+// Data that is passed to raster tasks.
+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;
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_TILE_DATA_H_

Powered by Google App Engine
This is Rietveld 408576698