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

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

Issue 147603006: [#7] Resubmitted - Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resubmit 145313006 Created 6 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/layers/nine_patch_layer_impl_unittest.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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 float* contents_scale_y, 51 float* contents_scale_y,
52 gfx::Size* content_bounds) OVERRIDE; 52 gfx::Size* content_bounds) OVERRIDE;
53 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE; 53 virtual skia::RefPtr<SkPicture> GetPicture() OVERRIDE;
54 54
55 // PictureLayerTilingClient overrides. 55 // PictureLayerTilingClient overrides.
56 virtual scoped_refptr<Tile> CreateTile( 56 virtual scoped_refptr<Tile> CreateTile(
57 PictureLayerTiling* tiling, 57 PictureLayerTiling* tiling,
58 const gfx::Rect& content_rect) OVERRIDE; 58 const gfx::Rect& content_rect) OVERRIDE;
59 virtual void UpdatePile(Tile* tile) OVERRIDE; 59 virtual void UpdatePile(Tile* tile) OVERRIDE;
60 virtual gfx::Size CalculateTileSize( 60 virtual gfx::Size CalculateTileSize(
61 gfx::Size content_bounds) const OVERRIDE; 61 const gfx::Size& content_bounds) const OVERRIDE;
62 virtual const Region* GetInvalidation() OVERRIDE; 62 virtual const Region* GetInvalidation() OVERRIDE;
63 virtual const PictureLayerTiling* GetTwinTiling( 63 virtual const PictureLayerTiling* GetTwinTiling(
64 const PictureLayerTiling* tiling) const OVERRIDE; 64 const PictureLayerTiling* tiling) const OVERRIDE;
65 65
66 // PushPropertiesTo active tree => pending tree. 66 // PushPropertiesTo active tree => pending tree.
67 void SyncTiling(const PictureLayerTiling* tiling); 67 void SyncTiling(const PictureLayerTiling* tiling);
68 68
69 // Mask-related functions 69 // Mask-related functions
70 void SetIsMask(bool is_mask); 70 void SetIsMask(bool is_mask);
71 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE; 71 virtual ResourceProvider::ResourceId ContentsResourceId() const OVERRIDE;
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool should_update_tile_priorities_; 151 bool should_update_tile_priorities_;
152 bool should_use_gpu_rasterization_; 152 bool should_use_gpu_rasterization_;
153 153
154 friend class PictureLayer; 154 friend class PictureLayer;
155 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 155 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
156 }; 156 };
157 157
158 } // namespace cc 158 } // namespace cc
159 159
160 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 160 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/nine_patch_layer_impl_unittest.cc ('k') | cc/layers/picture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698