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

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

Issue 474783002: HUD: Show first paint invalidation in red (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: compilefix Created 6 years, 3 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/layers/picture_layer.cc ('k') | cc/layers/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_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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 virtual void AppendQuads(RenderPass* render_pass, 109 virtual void AppendQuads(RenderPass* render_pass,
110 const OcclusionTracker<LayerImpl>& occlusion_tracker, 110 const OcclusionTracker<LayerImpl>& occlusion_tracker,
111 AppendQuadsData* append_quads_data) OVERRIDE; 111 AppendQuadsData* append_quads_data) OVERRIDE;
112 virtual void UpdateTiles( 112 virtual void UpdateTiles(
113 const Occlusion& occlusion_in_content_space) OVERRIDE; 113 const Occlusion& occlusion_in_content_space) OVERRIDE;
114 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE; 114 virtual void NotifyTileStateChanged(const Tile* tile) OVERRIDE;
115 virtual void DidBecomeActive() OVERRIDE; 115 virtual void DidBecomeActive() OVERRIDE;
116 virtual void DidBeginTracing() OVERRIDE; 116 virtual void DidBeginTracing() OVERRIDE;
117 virtual void ReleaseResources() OVERRIDE; 117 virtual void ReleaseResources() OVERRIDE;
118 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; 118 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE;
119 virtual bool GetDetailedPaintRects(std::vector<DebugRect>*) OVERRIDE;
119 120
120 // PictureLayerTilingClient overrides. 121 // PictureLayerTilingClient overrides.
121 virtual scoped_refptr<Tile> CreateTile( 122 virtual scoped_refptr<Tile> CreateTile(
122 PictureLayerTiling* tiling, 123 PictureLayerTiling* tiling,
123 const gfx::Rect& content_rect) OVERRIDE; 124 const gfx::Rect& content_rect) OVERRIDE;
124 virtual PicturePileImpl* GetPile() OVERRIDE; 125 virtual PicturePileImpl* GetPile() OVERRIDE;
125 virtual gfx::Size CalculateTileSize( 126 virtual gfx::Size CalculateTileSize(
126 const gfx::Size& content_bounds) const OVERRIDE; 127 const gfx::Size& content_bounds) const OVERRIDE;
127 virtual const Region* GetInvalidation() OVERRIDE; 128 virtual const Region* GetInvalidation() OVERRIDE;
128 virtual const PictureLayerTiling* GetTwinTiling( 129 virtual const PictureLayerTiling* GetTwinTiling(
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE; 197 virtual void AsValueInto(base::debug::TracedValue* dict) const OVERRIDE;
197 198
198 virtual void UpdateIdealScales(); 199 virtual void UpdateIdealScales();
199 float MaximumTilingContentsScale() const; 200 float MaximumTilingContentsScale() const;
200 201
201 PictureLayerImpl* twin_layer_; 202 PictureLayerImpl* twin_layer_;
202 203
203 scoped_ptr<PictureLayerTilingSet> tilings_; 204 scoped_ptr<PictureLayerTilingSet> tilings_;
204 scoped_refptr<PicturePileImpl> pile_; 205 scoped_refptr<PicturePileImpl> pile_;
205 Region invalidation_; 206 Region invalidation_;
207 std::vector<DebugRect> debug_invalidation_;
206 208
207 float ideal_page_scale_; 209 float ideal_page_scale_;
208 float ideal_device_scale_; 210 float ideal_device_scale_;
209 float ideal_source_scale_; 211 float ideal_source_scale_;
210 float ideal_contents_scale_; 212 float ideal_contents_scale_;
211 213
212 float raster_page_scale_; 214 float raster_page_scale_;
213 float raster_device_scale_; 215 float raster_device_scale_;
214 float raster_source_scale_; 216 float raster_source_scale_;
215 float raster_contents_scale_; 217 float raster_contents_scale_;
(...skipping 12 matching lines...) Expand all
228 gfx::Rect viewport_rect_for_tile_priority_; 230 gfx::Rect viewport_rect_for_tile_priority_;
229 gfx::Transform screen_space_transform_for_tile_priority_; 231 gfx::Transform screen_space_transform_for_tile_priority_;
230 232
231 friend class PictureLayer; 233 friend class PictureLayer;
232 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 234 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
233 }; 235 };
234 236
235 } // namespace cc 237 } // namespace cc
236 238
237 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 239 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_layer.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698