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

Side by Side Diff: cc/layers/picture_layer_impl.h

Issue 12865017: Makes tile-creation lazy (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: a bug fix and removal of several now useless functions 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
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
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_LAYERS_PICTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_PICTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_PICTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 gfx::Size* content_bounds) OVERRIDE; 49 gfx::Size* content_bounds) OVERRIDE;
50 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; 50 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE;
51 51
52 // PictureLayerTilingClient overrides. 52 // PictureLayerTilingClient overrides.
53 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling, 53 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling* tiling,
54 gfx::Rect content_rect) OVERRIDE; 54 gfx::Rect content_rect) OVERRIDE;
55 virtual void UpdatePile(Tile* tile) OVERRIDE; 55 virtual void UpdatePile(Tile* tile) OVERRIDE;
56 virtual gfx::Size CalculateTileSize( 56 virtual gfx::Size CalculateTileSize(
57 gfx::Size current_tile_size, 57 gfx::Size current_tile_size,
58 gfx::Size content_bounds) OVERRIDE; 58 gfx::Size content_bounds) OVERRIDE;
59 virtual const Region* GetInvalidation() OVERRIDE;
60 virtual const PictureLayerTiling* GetTwinTiling(
61 const PictureLayerTiling* tiling) OVERRIDE;
59 62
60 // PushPropertiesTo active tree => pending tree 63 // PushPropertiesTo active tree => pending tree
61 void SyncFromActiveLayer(); 64 void SyncFromActiveLayer();
62 void SyncTiling( 65 void SyncTiling(const PictureLayerTiling* tiling);
63 const PictureLayerTiling* tiling,
64 const Region& pending_layer_invalidation);
65 66
66 void CreateTilingSet(); 67 void CreateTilingSet();
67 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); 68 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings);
68 69
69 // Mask-related functions 70 // Mask-related functions
70 void SetIsMask(bool is_mask); 71 void SetIsMask(bool is_mask);
71 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; 72 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
72 73
73 virtual bool AreVisibleResourcesReady() const OVERRIDE; 74 virtual bool AreVisibleResourcesReady() const OVERRIDE;
74 75
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 bool raster_source_scale_was_animating_; 120 bool raster_source_scale_was_animating_;
120 bool is_using_lcd_text_; 121 bool is_using_lcd_text_;
121 122
122 friend class PictureLayer; 123 friend class PictureLayer;
123 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 124 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
124 }; 125 };
125 126
126 } // namespace cc 127 } // namespace cc
127 128
128 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 129 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698