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

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

Issue 140513006: cc: Simplify picture layer tiling update tile priorities. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed dead code Created 6 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 | Annotate | Revision Log
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.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_worker_pool.h" 10 #include "cc/resources/raster_worker_pool.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 scoped_ptr<base::Value> AsValue() const; 104 scoped_ptr<base::Value> AsValue() const;
105 105
106 // Persisted state: valid all the time. 106 // Persisted state: valid all the time.
107 TileVersion tile_versions[NUM_RASTER_MODES]; 107 TileVersion tile_versions[NUM_RASTER_MODES];
108 RasterMode raster_mode; 108 RasterMode raster_mode;
109 109
110 ManagedTileBin bin; 110 ManagedTileBin bin;
111 111
112 TileResolution resolution; 112 TileResolution resolution;
113 bool required_for_activation; 113 bool required_for_activation;
114 float time_to_needed_in_seconds; 114 TilePriority::PriorityBin priority_bin;
115 float distance_to_visible_in_pixels; 115 float distance_to_visible;
116 bool visible_and_ready_to_draw; 116 bool visible_and_ready_to_draw;
117 117
118 // Priority for this state from the last time we assigned memory. 118 // Priority for this state from the last time we assigned memory.
119 unsigned scheduled_priority; 119 unsigned scheduled_priority;
120 }; 120 };
121 121
122 } // namespace cc 122 } // namespace cc
123 123
124 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_ 124 #endif // CC_RESOURCES_MANAGED_TILE_STATE_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/resources/managed_tile_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698