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

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

Issue 13895005: cc: Find a better prioritized rect when the viewport rect is huge. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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
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_SET_H_ 5 #ifndef CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include "cc/base/region.h" 8 #include "cc/base/region.h"
9 #include "cc/base/scoped_ptr_vector.h" 9 #include "cc/base/scoped_ptr_vector.h"
10 #include "cc/resources/picture_layer_tiling.h" 10 #include "cc/resources/picture_layer_tiling.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 // Remove all tiles; keep all tilings. 48 // Remove all tiles; keep all tilings.
49 void RemoveAllTiles(); 49 void RemoveAllTiles();
50 50
51 // For all tilings, create any tile that intersects |layer_rect|. 51 // For all tilings, create any tile that intersects |layer_rect|.
52 void CreateTilesFromLayerRect(gfx::Rect layer_rect); 52 void CreateTilesFromLayerRect(gfx::Rect layer_rect);
53 53
54 void UpdateTilePriorities( 54 void UpdateTilePriorities(
55 WhichTree tree, 55 WhichTree tree,
56 gfx::Size device_viewport, 56 gfx::Size device_viewport,
57 gfx::Rect viewport_in_content_space, 57 gfx::Rect viewport_in_content_space,
58 gfx::Rect visible_content_rect,
58 gfx::Size last_layer_bounds, 59 gfx::Size last_layer_bounds,
59 gfx::Size current_layer_bounds, 60 gfx::Size current_layer_bounds,
60 float last_layer_contents_scale, 61 float last_layer_contents_scale,
61 float current_layer_contents_scale, 62 float current_layer_contents_scale,
62 const gfx::Transform& last_screen_transform, 63 const gfx::Transform& last_screen_transform,
63 const gfx::Transform& current_screen_transform, 64 const gfx::Transform& current_screen_transform,
64 int current_source_frame_number, 65 int current_source_frame_number,
65 double current_frame_time, 66 double current_frame_time,
66 bool store_screen_space_quads_on_tiles, 67 bool store_screen_space_quads_on_tiles,
67 size_t max_tiles_for_interest_area); 68 size_t max_tiles_for_interest_area);
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 gfx::Size layer_bounds_; 120 gfx::Size layer_bounds_;
120 ScopedPtrVector<PictureLayerTiling> tilings_; 121 ScopedPtrVector<PictureLayerTiling> tilings_;
121 122
122 friend class Iterator; 123 friend class Iterator;
123 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet); 124 DISALLOW_COPY_AND_ASSIGN(PictureLayerTilingSet);
124 }; 125 };
125 126
126 } // namespace cc 127 } // namespace cc
127 128
128 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_ 129 #endif // CC_RESOURCES_PICTURE_LAYER_TILING_SET_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698