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

Unified Diff: cc/resources/managed_tile_state.h

Issue 15995033: cc: Low quality support for low res tiles (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: typo fix 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
« no previous file with comments | « no previous file | cc/resources/managed_tile_state.cc » ('j') | cc/resources/tile_manager.h » ('J')
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 2305b263dba00a72527571482631f777cfe7d7db..1879ed185aaffc6af36c5728e2d2349e1944e8ef 100644
--- a/cc/resources/managed_tile_state.h
+++ b/cc/resources/managed_tile_state.h
@@ -5,6 +5,8 @@
#ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_
#define CC_RESOURCES_MANAGED_TILE_STATE_H_
+#include <map>
+
#include "base/memory/scoped_ptr.h"
#include "cc/resources/platform_color.h"
#include "cc/resources/raster_worker_pool.h"
@@ -75,6 +77,8 @@ class CC_EXPORT ManagedTileState {
return resource_;
}
+ bool ShouldBeUpdatedBy(TileRasterMode new_mode) const;
+
private:
friend class TileManager;
friend class Tile;
@@ -95,6 +99,8 @@ class CC_EXPORT ManagedTileState {
resource_id_ = 0;
}
+ void PushPropertiesTo(TileVersion* destination);
+
Mode mode_;
SkColor solid_color_;
@@ -105,6 +111,8 @@ class CC_EXPORT ManagedTileState {
scoped_ptr<ResourcePool::Resource> resource_;
GLenum resource_format_;
bool forced_upload_;
+ TileRasterMode raster_mode_;
+ RasterWorkerPool::RasterTask raster_task_;
};
@@ -115,9 +123,12 @@ class CC_EXPORT ManagedTileState {
// Persisted state: valid all the time.
TileVersion tile_version;
reveman 2013/06/05 14:25:13 Why not just replace |tile_version| with: typedef
+
+ typedef std::map<TileRasterMode, TileVersion*> TileVersionMap;
+ TileVersionMap pending_tile_versions;
+
bool picture_pile_analyzed;
PicturePileImpl::Analysis picture_pile_analysis;
- RasterWorkerPool::RasterTask raster_task;
// Ephemeral state, valid only during TileManager::ManageTiles.
bool is_in_never_bin_on_both_trees() const {
« no previous file with comments | « no previous file | cc/resources/managed_tile_state.cc » ('j') | cc/resources/tile_manager.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698