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

Side by Side Diff: cc/picture_layer_impl.h

Issue 11953005: cc: Update picture pile on tiles to prevent memory leak (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename MoveTilePriorities to DidBecomeActive 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 | « no previous file | cc/picture_layer_impl.cc » ('j') | 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_IMPL_H_ 5 #ifndef CC_PICTURE_LAYER_IMPL_H_
6 #define CC_PICTURE_LAYER_IMPL_H_ 6 #define CC_PICTURE_LAYER_IMPL_H_
7 7
8 #include "cc/layer_impl.h" 8 #include "cc/layer_impl.h"
9 #include "cc/picture_layer_tiling.h" 9 #include "cc/picture_layer_tiling.h"
10 #include "cc/picture_layer_tiling_set.h" 10 #include "cc/picture_layer_tiling_set.h"
(...skipping 26 matching lines...) Expand all
37 virtual void calculateContentsScale( 37 virtual void calculateContentsScale(
38 float ideal_contents_scale, 38 float ideal_contents_scale,
39 float* contents_scale_x, 39 float* contents_scale_x,
40 float* contents_scale_y, 40 float* contents_scale_y,
41 gfx::Size* content_bounds) OVERRIDE; 41 gfx::Size* content_bounds) OVERRIDE;
42 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE; 42 virtual skia::RefPtr<SkPicture> getPicture() OVERRIDE;
43 43
44 // PictureLayerTilingClient overrides. 44 // PictureLayerTilingClient overrides.
45 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, 45 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*,
46 gfx::Rect) OVERRIDE; 46 gfx::Rect) OVERRIDE;
47 virtual void UpdatePile(Tile* tile) OVERRIDE;
47 48
48 // PushPropertiesTo active tree => pending tree 49 // PushPropertiesTo active tree => pending tree
49 void SyncFromActiveLayer(); 50 void SyncFromActiveLayer();
50 void SyncTiling(const PictureLayerTiling* tiling); 51 void SyncTiling(const PictureLayerTiling* tiling);
51 52
52 // Mask-related functions 53 // Mask-related functions
53 void SetIsMask(bool is_mask); 54 void SetIsMask(bool is_mask);
54 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; 55 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
55 56
56 virtual bool areVisibleResourcesReady() const OVERRIDE; 57 virtual bool areVisibleResourcesReady() const OVERRIDE;
(...skipping 18 matching lines...) Expand all
75 float ideal_contents_scale_; 76 float ideal_contents_scale_;
76 bool is_mask_; 77 bool is_mask_;
77 78
78 friend class PictureLayer; 79 friend class PictureLayer;
79 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 80 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
80 }; 81 };
81 82
82 } 83 }
83 84
84 #endif // CC_PICTURE_LAYER_IMPL_H_ 85 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698