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

Side by Side Diff: cc/picture_layer_impl.h

Issue 12326022: Efficiently handle image layer scaling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win warnings 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
« no previous file with comments | « cc/picture_image_layer_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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual bool areVisibleResourcesReady() const OVERRIDE; 69 virtual bool areVisibleResourcesReady() const OVERRIDE;
70 70
71 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE; 71 virtual scoped_ptr<base::Value> AsValue() const OVERRIDE;
72 72
73 protected: 73 protected:
74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id); 74 PictureLayerImpl(LayerTreeImpl* treeImpl, int id);
75 PictureLayerTiling* AddTiling(float contents_scale); 75 PictureLayerTiling* AddTiling(float contents_scale);
76 void RemoveTiling(float contents_scale); 76 void RemoveTiling(float contents_scale);
77 void SyncFromActiveLayer(const PictureLayerImpl* other); 77 void SyncFromActiveLayer(const PictureLayerImpl* other);
78 void ManageTilings(bool animating_transform_to_screen); 78 void ManageTilings(bool animating_transform_to_screen);
79 virtual void CalculateRasterContentsScale(
80 bool animating_transform_to_screen,
81 float* raster_contents_scale,
82 float* low_res_raster_contents_scale);
79 void CleanUpTilingsOnActiveLayer( 83 void CleanUpTilingsOnActiveLayer(
80 std::vector<PictureLayerTiling*> used_tilings); 84 std::vector<PictureLayerTiling*> used_tilings);
81 PictureLayerImpl* PendingTwin() const; 85 PictureLayerImpl* PendingTwin() const;
82 PictureLayerImpl* ActiveTwin() const; 86 PictureLayerImpl* ActiveTwin() const;
83 87
84 virtual void getDebugBorderProperties( 88 virtual void getDebugBorderProperties(
85 SkColor* color, float* width) const OVERRIDE; 89 SkColor* color, float* width) const OVERRIDE;
86 90
87 scoped_ptr<PictureLayerTilingSet> tilings_; 91 scoped_ptr<PictureLayerTilingSet> tilings_;
88 scoped_refptr<PicturePileImpl> pile_; 92 scoped_refptr<PicturePileImpl> pile_;
(...skipping 15 matching lines...) Expand all
104 float raster_source_scale_; 108 float raster_source_scale_;
105 bool raster_source_scale_was_animating_; 109 bool raster_source_scale_was_animating_;
106 110
107 friend class PictureLayer; 111 friend class PictureLayer;
108 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 112 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
109 }; 113 };
110 114
111 } 115 }
112 116
113 #endif // CC_PICTURE_LAYER_IMPL_H_ 117 #endif // CC_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/picture_image_layer_impl.cc ('k') | cc/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698