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

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

Issue 13051003: cpplint.py pass on cc/(base|debug|quads|resources)/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix prioritized_resource_unittest Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « cc/resources/scoped_resource_unittest.cc ('k') | cc/resources/tile_manager.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_TILE_H_ 5 #ifndef CC_RESOURCES_TILE_H_
6 #define CC_RESOURCES_TILE_H_ 6 #define CC_RESOURCES_TILE_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 } 56 }
57 57
58 const gfx::Rect& opaque_rect() const { return opaque_rect_; } 58 const gfx::Rect& opaque_rect() const { return opaque_rect_; }
59 59
60 float contents_scale() const { return contents_scale_; } 60 float contents_scale() const { return contents_scale_; }
61 gfx::Rect content_rect() const { return content_rect_; } 61 gfx::Rect content_rect() const { return content_rect_; }
62 62
63 int layer_id() const { return layer_id_; } 63 int layer_id() const { return layer_id_; }
64 64
65 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) { 65 void set_picture_pile(scoped_refptr<PicturePileImpl> pile) {
66 DCHECK(pile->CanRaster(contents_scale_, content_rect_)); 66 DCHECK(pile->CanRaster(contents_scale_, content_rect_));
67 picture_pile_ = pile; 67 picture_pile_ = pile;
68 } 68 }
69 69
70 private: 70 private:
71 // Methods called by by tile manager. 71 // Methods called by by tile manager.
72 friend class TileManager; 72 friend class TileManager;
73 friend class BinComparator; 73 friend class BinComparator;
74 ManagedTileState& managed_state() { return managed_state_; } 74 ManagedTileState& managed_state() { return managed_state_; }
75 const ManagedTileState& managed_state() const { return managed_state_; } 75 const ManagedTileState& managed_state() const { return managed_state_; }
76 76
77 inline size_t bytes_consumed_if_allocated() const { 77 inline size_t bytes_consumed_if_allocated() const {
(...skipping 15 matching lines...) Expand all
93 gfx::Rect opaque_rect_; 93 gfx::Rect opaque_rect_;
94 94
95 TilePriority priority_[NUM_BIN_PRIORITIES]; 95 TilePriority priority_[NUM_BIN_PRIORITIES];
96 ManagedTileState managed_state_; 96 ManagedTileState managed_state_;
97 int layer_id_; 97 int layer_id_;
98 }; 98 };
99 99
100 } // namespace cc 100 } // namespace cc
101 101
102 #endif // CC_RESOURCES_TILE_H_ 102 #endif // CC_RESOURCES_TILE_H_
OLDNEW
« no previous file with comments | « cc/resources/scoped_resource_unittest.cc ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698