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

Side by Side Diff: cc/picture_layer_tiling_set.h

Issue 11777008: cc: Use maximum tiling contents scales for picture layer scale (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Ok, 1.f Created 7 years, 11 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/picture_layer_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PICTURE_LAYER_TILING_SET_H_ 5 #ifndef CC_PICTURE_LAYER_TILING_SET_H_
6 #define CC_PICTURE_LAYER_TILING_SET_H_ 6 #define CC_PICTURE_LAYER_TILING_SET_H_
7 7
8 #include "cc/picture_layer_tiling.h" 8 #include "cc/picture_layer_tiling.h"
9 #include "cc/region.h" 9 #include "cc/region.h"
10 #include "cc/scoped_ptr_vector.h" 10 #include "cc/scoped_ptr_vector.h"
(...skipping 12 matching lines...) Expand all
23 const Region& invalidation); 23 const Region& invalidation);
24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation); 24 void Clone(const PictureLayerTiling* tiling, const Region& invalidation);
25 25
26 void SetLayerBounds(gfx::Size layer_bounds); 26 void SetLayerBounds(gfx::Size layer_bounds);
27 gfx::Size LayerBounds() const; 27 gfx::Size LayerBounds() const;
28 28
29 const PictureLayerTiling* AddTiling( 29 const PictureLayerTiling* AddTiling(
30 float contents_scale, 30 float contents_scale,
31 gfx::Size tile_size); 31 gfx::Size tile_size);
32 size_t num_tilings() const { return tilings_.size(); } 32 size_t num_tilings() const { return tilings_.size(); }
33 PictureLayerTiling* tiling_at(size_t idx) { return tilings_[idx]; }
33 34
34 void Reset(); 35 void Reset();
35 36
36 void UpdateTilePriorities( 37 void UpdateTilePriorities(
37 WhichTree tree, 38 WhichTree tree,
38 const gfx::Size& device_viewport, 39 const gfx::Size& device_viewport,
39 float layer_content_scale_x, 40 float layer_content_scale_x,
40 float layer_content_scale_y, 41 float layer_content_scale_y,
41 const gfx::Transform& last_screen_transform, 42 const gfx::Transform& last_screen_transform,
42 const gfx::Transform& current_screen_transform, 43 const gfx::Transform& current_screen_transform,
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 gfx::Size layer_bounds_; 86 gfx::Size layer_bounds_;
86 ScopedPtrVector<PictureLayerTiling> tilings_; 87 ScopedPtrVector<PictureLayerTiling> tilings_;
87 Region invalidation_; 88 Region invalidation_;
88 89
89 friend class Iterator; 90 friend class Iterator;
90 }; 91 };
91 92
92 } // namespace cc 93 } // namespace cc
93 94
94 #endif // CC_PICTURE_LAYER_TILING_SET_H_ 95 #endif // CC_PICTURE_LAYER_TILING_SET_H_
OLDNEW
« no previous file with comments | « cc/picture_layer_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698