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

Unified Diff: cc/resources/managed_tile_state.h

Issue 603683006: cc: Remove low quality mode and cleanup tile versions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 3 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/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/managed_tile_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/managed_tile_state.h
diff --git a/cc/resources/managed_tile_state.h b/cc/resources/managed_tile_state.h
index faa7c63a3b2ce6cf82e12ca2a6f45b07fcf4794e..58b77c60fc3f67643882730265afc3e318cb174c 100644
--- a/cc/resources/managed_tile_state.h
+++ b/cc/resources/managed_tile_state.h
@@ -7,7 +7,6 @@
#include "base/memory/scoped_ptr.h"
#include "cc/resources/platform_color.h"
-#include "cc/resources/raster_mode.h"
#include "cc/resources/rasterizer.h"
#include "cc/resources/resource_pool.h"
#include "cc/resources/resource_provider.h"
@@ -38,12 +37,13 @@ scoped_ptr<base::Value> ManagedTileBinAsValue(ManagedTileBin bin);
// managed by the TileManager.
class CC_EXPORT ManagedTileState {
public:
- class CC_EXPORT TileVersion {
+ // This class holds all the state relevant to drawing a tile.
+ class CC_EXPORT DrawInfo {
public:
enum Mode { RESOURCE_MODE, SOLID_COLOR_MODE, PICTURE_PILE_MODE };
- TileVersion();
- ~TileVersion();
+ DrawInfo();
+ ~DrawInfo();
Mode mode() const { return mode_; }
@@ -73,8 +73,6 @@ class CC_EXPORT ManagedTileState {
inline bool has_resource() const { return !!resource_; }
- size_t GPUMemoryUsageInBytes() const;
-
void SetSolidColorForTesting(SkColor color) { set_solid_color(color); }
void SetResourceForTesting(scoped_ptr<ScopedResource> resource) {
resource_ = resource.Pass();
@@ -98,7 +96,6 @@ class CC_EXPORT ManagedTileState {
Mode mode_;
SkColor solid_color_;
scoped_ptr<ScopedResource> resource_;
- scoped_refptr<RasterTask> raster_task_;
};
ManagedTileState();
@@ -107,8 +104,8 @@ class CC_EXPORT ManagedTileState {
void AsValueInto(base::debug::TracedValue* dict) const;
// Persisted state: valid all the time.
- TileVersion tile_versions[NUM_RASTER_MODES];
- RasterMode raster_mode;
+ DrawInfo draw_info;
+ scoped_refptr<RasterTask> raster_task;
ManagedTileBin bin;
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/managed_tile_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698