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

Unified Diff: cc/resources/picture_layer_tiling_set.h

Issue 754433003: Update from https://crrev.com/305340 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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/resources/bitmap_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_set.h
diff --git a/cc/resources/picture_layer_tiling_set.h b/cc/resources/picture_layer_tiling_set.h
index 661dd24b2d2f0707e09d4ccb32d3ec33a957cfa6..f0d0fd7890702ec8a0b4b149fa5216d2068ea004 100644
--- a/cc/resources/picture_layer_tiling_set.h
+++ b/cc/resources/picture_layer_tiling_set.h
@@ -6,6 +6,7 @@
#define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
#include <set>
+#include <vector>
#include "cc/base/region.h"
#include "cc/base/scoped_ptr_vector.h"
@@ -45,6 +46,12 @@ class CC_EXPORT PictureLayerTilingSet {
const PictureLayerTilingClient* client() const { return client_; }
void RemoveTilesInRegion(const Region& region);
+ void CleanUpTilings(float min_acceptable_high_res_scale,
+ float max_acceptable_high_res_scale,
+ const std::vector<PictureLayerTiling*>& needed_tilings,
+ bool should_have_low_res,
+ PictureLayerTilingSet* twin_set,
+ PictureLayerTilingSet* recycled_twin_set);
// Make this set of tilings match the same set of content scales from |other|.
// Delete any tilings that don't meet |minimum_contents_scale|. Recreate
@@ -85,10 +92,6 @@ class CC_EXPORT PictureLayerTilingSet {
// Remove all tilings.
void RemoveAllTilings();
- // Remove one tiling.
- void Remove(PictureLayerTiling* tiling);
- void RemoveTilingWithScale(float scale);
-
// Remove all tiles; keep all tilings.
void RemoveAllTiles();
@@ -154,6 +157,9 @@ class CC_EXPORT PictureLayerTilingSet {
private:
explicit PictureLayerTilingSet(PictureLayerTilingClient* client);
+ // Remove one tiling.
+ void Remove(PictureLayerTiling* tiling);
+
PictureLayerTilingClient* client_;
ScopedPtrVector<PictureLayerTiling> tilings_;
« no previous file with comments | « cc/resources/bitmap_raster_worker_pool.cc ('k') | cc/resources/picture_layer_tiling_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698