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

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

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make reviewer happier Created 5 years, 7 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
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_RESOURCES_PRIORITIZED_TILE_H_
6 #define CC_RESOURCES_PRIORITIZED_TILE_H_
7
8 #include "cc/base/cc_export.h"
9 #include "cc/resources/tile.h"
10 #include "cc/resources/tile_priority.h"
11
12 namespace cc {
13 class PictureLayerTiling;
14
15 class CC_EXPORT PrioritizedTile {
vmpstr 2015/05/11 16:44:44 Can you leave a brief comment here about the usage
hendrikw 2015/05/11 17:38:30 Done.
16 public:
17 PrioritizedTile();
18 ~PrioritizedTile();
19
20 Tile* tile() const { return tile_; }
21 const TilePriority& priority() const { return priority_; }
22 bool is_occluded() const { return is_occluded_; }
23
24 private:
25 friend class PictureLayerTiling;
26
27 PrioritizedTile(Tile* tile, const TilePriority priority, bool is_occluded);
28
29 Tile* tile_;
30 TilePriority priority_;
31 bool is_occluded_;
32 };
33
34 } // namespace cc
35
36 #endif // CC_RESOURCES_PRIORITIZED_TILE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698