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

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

Issue 421183003: Revert of Add builders for tracing event's structural arguments (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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/image_raster_worker_pool.cc ('k') | cc/resources/managed_tile_state.cc » ('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 #ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_ 5 #ifndef CC_RESOURCES_MANAGED_TILE_STATE_H_
6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_ 6 #define CC_RESOURCES_MANAGED_TILE_STATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/resources/platform_color.h" 9 #include "cc/resources/platform_color.h"
10 #include "cc/resources/raster_mode.h" 10 #include "cc/resources/raster_mode.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 Mode mode_; 98 Mode mode_;
99 SkColor solid_color_; 99 SkColor solid_color_;
100 scoped_ptr<ScopedResource> resource_; 100 scoped_ptr<ScopedResource> resource_;
101 scoped_refptr<RasterTask> raster_task_; 101 scoped_refptr<RasterTask> raster_task_;
102 }; 102 };
103 103
104 ManagedTileState(); 104 ManagedTileState();
105 ~ManagedTileState(); 105 ~ManagedTileState();
106 106
107 void AsValueInto(base::debug::TracedValue* dict) const; 107 scoped_ptr<base::Value> AsValue() const;
108 108
109 // Persisted state: valid all the time. 109 // Persisted state: valid all the time.
110 TileVersion tile_versions[NUM_RASTER_MODES]; 110 TileVersion tile_versions[NUM_RASTER_MODES];
111 RasterMode raster_mode; 111 RasterMode raster_mode;
112 112
113 ManagedTileBin bin; 113 ManagedTileBin bin;
114 114
115 TileResolution resolution; 115 TileResolution resolution;
116 bool required_for_activation; 116 bool required_for_activation;
117 TilePriority::PriorityBin priority_bin; 117 TilePriority::PriorityBin priority_bin;
118 float distance_to_visible; 118 float distance_to_visible;
119 bool visible_and_ready_to_draw; 119 bool visible_and_ready_to_draw;
120 120
121 // Priority for this state from the last time we assigned memory. 121 // Priority for this state from the last time we assigned memory.
122 unsigned scheduled_priority; 122 unsigned scheduled_priority;
123 }; 123 };
124 124
125 } // namespace cc 125 } // namespace cc
126 126
127 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ 127 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_
OLDNEW
« no previous file with comments | « cc/resources/image_raster_worker_pool.cc ('k') | cc/resources/managed_tile_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698