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

Side by Side Diff: cc/picture_layer_impl.h

Issue 12258044: cc: Add PictureLayerImpl::AsValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Size as value Created 7 years, 10 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/layer_tree_impl.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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 void CreateTilingSet(); 62 void CreateTilingSet();
63 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings); 63 void TransferTilingSet(scoped_ptr<PictureLayerTilingSet> tilings);
64 64
65 // Mask-related functions 65 // Mask-related functions
66 void SetIsMask(bool is_mask); 66 void SetIsMask(bool is_mask);
67 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE; 67 virtual ResourceProvider::ResourceId contentsResourceId() const OVERRIDE;
68 68
69 virtual bool areVisibleResourcesReady() const OVERRIDE; 69 virtual bool areVisibleResourcesReady() const OVERRIDE;
70 70
71 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
72
71 protected: 73 protected:
72 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); 74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
73 PictureLayerTiling* AddTiling(float contents_scale); 75 PictureLayerTiling* AddTiling(float contents_scale);
74 void RemoveTiling(float contents_scale); 76 void RemoveTiling(float contents_scale);
75 void SyncFromActiveLayer(const PictureLayerImpl* other); 77 void SyncFromActiveLayer(const PictureLayerImpl* other);
76 void ManageTilings(bool animating_transform_to_screen); 78 void ManageTilings(bool animating_transform_to_screen);
77 void CleanUpTilingsOnActiveLayer( 79 void CleanUpTilingsOnActiveLayer(
78 std::vector<PictureLayerTiling*> used_tilings); 80 std::vector<PictureLayerTiling*> used_tilings);
79 PictureLayerImpl* PendingTwin() const; 81 PictureLayerImpl* PendingTwin() const;
80 PictureLayerImpl* ActiveTwin() const; 82 PictureLayerImpl* ActiveTwin() const;
(...skipping 21 matching lines...) Expand all
102 float raster_source_scale_; 104 float raster_source_scale_;
103 bool raster_source_scale_was_animating_; 105 bool raster_source_scale_was_animating_;
104 106
105 friend class PictureLayer; 107 friend class PictureLayer;
106 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 108 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
107 }; 109 };
108 110
109 } 111 }
110 112
111 #endif // CC_PICTURE_LAYER_IMPL_H_ 113 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layer_tree_impl.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698