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

Side by Side Diff: cc/resources/tile_draw_info.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: 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/tile_draw_info.h ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "cc/resources/tile_draw_info.h" 5 #include "cc/resources/tile_draw_info.h"
6 6
7 #include "cc/base/math_util.h" 7 #include "cc/base/math_util.h"
8 8
9 namespace cc { 9 namespace cc {
10 10
(...skipping 10 matching lines...) Expand all
21 case RESOURCE_MODE: 21 case RESOURCE_MODE:
22 return !!resource_; 22 return !!resource_;
23 case SOLID_COLOR_MODE: 23 case SOLID_COLOR_MODE:
24 case PICTURE_PILE_MODE: 24 case PICTURE_PILE_MODE:
25 return true; 25 return true;
26 } 26 }
27 NOTREACHED(); 27 NOTREACHED();
28 return false; 28 return false;
29 } 29 }
30 30
31 void TileDrawInfo::AsValueInto(base::debug::TracedValue* state) const { 31 void TileDrawInfo::AsValueInto(base::trace_event::TracedValue* state) const {
32 state->SetBoolean("is_solid_color", mode_ == SOLID_COLOR_MODE); 32 state->SetBoolean("is_solid_color", mode_ == SOLID_COLOR_MODE);
33 state->SetBoolean("is_transparent", 33 state->SetBoolean("is_transparent",
34 mode_ == SOLID_COLOR_MODE && !SkColorGetA(solid_color_)); 34 mode_ == SOLID_COLOR_MODE && !SkColorGetA(solid_color_));
35 } 35 }
36 36
37 } // namespace cc 37 } // namespace cc
OLDNEW
« no previous file with comments | « cc/resources/tile_draw_info.h ('k') | cc/resources/tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698