OLD | NEW |
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_PICTURE_LAYER_TILING_H_ | 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
255 }; | 255 }; |
256 | 256 |
257 void Reset(); | 257 void Reset(); |
258 | 258 |
259 void ComputeTilePriorityRects(WhichTree tree, | 259 void ComputeTilePriorityRects(WhichTree tree, |
260 const gfx::Rect& viewport_in_layer_space, | 260 const gfx::Rect& viewport_in_layer_space, |
261 float ideal_contents_scale, | 261 float ideal_contents_scale, |
262 double current_frame_time_in_seconds, | 262 double current_frame_time_in_seconds, |
263 const Occlusion& occlusion_in_layer_space); | 263 const Occlusion& occlusion_in_layer_space); |
264 | 264 |
265 bool NeedsUpdateForFrameAtTime(double frame_time_in_seconds) { | |
266 return frame_time_in_seconds != last_impl_frame_time_in_seconds_; | |
267 } | |
268 | |
269 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const; | 265 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const; |
270 void AsValueInto(base::debug::TracedValue* array) const; | 266 void AsValueInto(base::debug::TracedValue* array) const; |
271 size_t GPUMemoryUsageInBytes() const; | 267 size_t GPUMemoryUsageInBytes() const; |
272 | 268 |
273 struct RectExpansionCache { | 269 struct RectExpansionCache { |
274 RectExpansionCache(); | 270 RectExpansionCache(); |
275 | 271 |
276 gfx::Rect previous_start; | 272 gfx::Rect previous_start; |
277 gfx::Rect previous_bounds; | 273 gfx::Rect previous_bounds; |
278 gfx::Rect previous_result; | 274 gfx::Rect previous_result; |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 369 |
374 private: | 370 private: |
375 DISALLOW_ASSIGN(PictureLayerTiling); | 371 DISALLOW_ASSIGN(PictureLayerTiling); |
376 | 372 |
377 RectExpansionCache expansion_cache_; | 373 RectExpansionCache expansion_cache_; |
378 }; | 374 }; |
379 | 375 |
380 } // namespace cc | 376 } // namespace cc |
381 | 377 |
382 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ | 378 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_H_ |
OLD | NEW |