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

Side by Side Diff: cc/resources/picture_layer_tiling.h

Issue 900073003: cc: Rework how picture layer tiling set gets into raster queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 10 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 unified diff | Download patch
« no previous file with comments | « cc/resources/eviction_tile_priority_queue.cc ('k') | cc/resources/picture_layer_tiling_set.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_
7 7
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 // This invalidation region defines the area (if any, it can by null) that 42 // This invalidation region defines the area (if any, it can by null) that
43 // tiles can not be shared between pending and active trees. 43 // tiles can not be shared between pending and active trees.
44 virtual const Region* GetPendingInvalidation() = 0; 44 virtual const Region* GetPendingInvalidation() = 0;
45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling( 45 virtual const PictureLayerTiling* GetPendingOrActiveTwinTiling(
46 const PictureLayerTiling* tiling) const = 0; 46 const PictureLayerTiling* tiling) const = 0;
47 virtual PictureLayerTiling* GetRecycledTwinTiling( 47 virtual PictureLayerTiling* GetRecycledTwinTiling(
48 const PictureLayerTiling* tiling) = 0; 48 const PictureLayerTiling* tiling) = 0;
49 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0; 49 virtual TilePriority::PriorityBin GetMaxTilePriorityBin() const = 0;
50 virtual WhichTree GetTree() const = 0; 50 virtual WhichTree GetTree() const = 0;
51 virtual bool RequiresHighResToDraw() const = 0; 51 virtual bool RequiresHighResToDraw() const = 0;
52 virtual bool HasValidTilePriorities() const = 0;
52 53
53 protected: 54 protected:
54 virtual ~PictureLayerTilingClient() {} 55 virtual ~PictureLayerTilingClient() {}
55 }; 56 };
56 57
57 class CC_EXPORT PictureLayerTiling { 58 class CC_EXPORT PictureLayerTiling {
58 public: 59 public:
59 static const int kBorderTexels = 1; 60 static const int kBorderTexels = 1;
60 61
61 ~PictureLayerTiling(); 62 ~PictureLayerTiling();
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 private: 323 private:
323 DISALLOW_ASSIGN(PictureLayerTiling); 324 DISALLOW_ASSIGN(PictureLayerTiling);
324 325
325 RectExpansionCache expansion_cache_; 326 RectExpansionCache expansion_cache_;
326 }; 327 };
327 328
328 } // namespace cc 329 } // namespace cc
329 330
330 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ 331 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_
OLDNEW
« no previous file with comments | « cc/resources/eviction_tile_priority_queue.cc ('k') | cc/resources/picture_layer_tiling_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698