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

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

Issue 667053003: cc: Consider visible rect for update tile priority early out. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
OLDNEW
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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698