diff options
author | ericrk <ericrk@chromium.org> | 2015-02-19 17:39:38 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-20 01:40:18 +0000 |
commit | 7c0309998c053b656951483fa6177512efa3014a (patch) | |
tree | d36f609316e128a13a946f0609362e75fe261c0f /cc/resources/tile.h | |
parent | 8fe2fe9afd2d94f6cd814cd55900460ad11da26a (diff) | |
download | chromium_src-7c0309998c053b656951483fa6177512efa3014a.zip chromium_src-7c0309998c053b656951483fa6177512efa3014a.tar.gz chromium_src-7c0309998c053b656951483fa6177512efa3014a.tar.bz2 |
Fix Enum Style Throughout CC.
Currently CC does not always follow the chromium C++ style guidelines, sometimes using:
enum EnumName {
EnumNameValue1,
EnumNameValue2,
... etc ...
};
This change converts these enums to use:
enum EnumName {
ENUM_NAME_VALUE_1,
ENUM_NAME_VALUE_2,
... etc ...
};
This change also converts a few enums from using a NUM_ELEMENTS value to
using a LAST_ELEMENT value, which works better with switch statements.
R=danakj@chromium.org
Review URL: https://codereview.chromium.org/935213002
Cr-Commit-Position: refs/heads/master@{#317211}
Diffstat (limited to 'cc/resources/tile.h')
-rw-r--r-- | cc/resources/tile.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cc/resources/tile.h b/cc/resources/tile.h index d4697cc..c3ca623 100644 --- a/cc/resources/tile.h +++ b/cc/resources/tile.h @@ -150,9 +150,9 @@ class CC_EXPORT Tile : public RefCountedManaged<Tile> { gfx::Size desired_texture_size_; gfx::Rect content_rect_; float contents_scale_; - bool is_occluded_[NUM_TREES]; + bool is_occluded_[LAST_TREE + 1]; - TilePriority priority_[NUM_TREES]; + TilePriority priority_[LAST_TREE + 1]; TileDrawInfo draw_info_; int layer_id_; |