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

Side by Side Diff: cc/picture_layer_impl.h

Issue 11639050: cc: Support mask layers in impl-side painting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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.cc ('k') | 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 23 matching lines...) Expand all
34 void didUpdateBounds(); 34 void didUpdateBounds();
35 35
36 // PictureLayerTilingClient overrides. 36 // PictureLayerTilingClient overrides.
37 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*, 37 virtual scoped_refptr<Tile> CreateTile(PictureLayerTiling*,
38 gfx::Rect) OVERRIDE; 38 gfx::Rect) OVERRIDE;
39 39
40 // PushPropertiesTo active tree => pending tree 40 // PushPropertiesTo active tree => pending tree
41 void SyncFromActiveLayer(); 41 void SyncFromActiveLayer();
42 void SyncTiling(const PictureLayerTiling* tiling); 42 void SyncTiling(const PictureLayerTiling* tiling);
43 43
44 // Mask-related functions
45 void SetIsMask(bool is_mask);
46 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
47
44 protected: 48 protected:
45 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); 49 PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
46 void AddTiling(float contents_scale, gfx::Size tile_size); 50 void AddTiling(float contents_scale, gfx::Size tile_size);
47 void SyncFromActiveLayer(const PictureLayerImpl* other); 51 void SyncFromActiveLayer(const PictureLayerImpl* other);
52 gfx::Size TileSize() const;
48 53
49 PictureLayerTilingSet tilings_; 54 PictureLayerTilingSet tilings_;
50 scoped_refptr<PicturePileImpl> pile_; 55 scoped_refptr<PicturePileImpl> pile_;
51 Region invalidation_; 56 Region invalidation_;
52 57
53 gfx::Transform last_screen_space_transform_; 58 gfx::Transform last_screen_space_transform_;
54 double last_update_time_; 59 double last_update_time_;
55 gfx::Size last_bounds_; 60 gfx::Size last_bounds_;
56 gfx::Size last_content_bounds_; 61 gfx::Size last_content_bounds_;
57 float last_content_scale_x_; 62 float last_content_scale_x_;
58 float last_content_scale_y_; 63 float last_content_scale_y_;
64 bool is_mask_;
59 65
60 friend class PictureLayer; 66 friend class PictureLayer;
61 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 67 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
62 }; 68 };
63 69
64 } 70 }
65 71
66 #endif // CC_PICTURE_LAYER_IMPL_H_ 72 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture_layer.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698