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

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

Issue 2668873002: cc: Add checker-imaging support to TileManager. (Closed)
Patch Set: Created 3 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
11 #include <string> 11 #include <string>
12 #include <vector> 12 #include <vector>
13 13
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "base/memory/ptr_util.h" 15 #include "base/memory/ptr_util.h"
16 #include "cc/base/cc_export.h" 16 #include "cc/base/cc_export.h"
17 #include "cc/layers/layer_impl.h" 17 #include "cc/layers/layer_impl.h"
18 #include "cc/playback/image_id.h"
18 #include "cc/tiles/picture_layer_tiling.h" 19 #include "cc/tiles/picture_layer_tiling.h"
19 #include "cc/tiles/picture_layer_tiling_set.h" 20 #include "cc/tiles/picture_layer_tiling_set.h"
20 #include "cc/tiles/tiling_set_eviction_queue.h" 21 #include "cc/tiles/tiling_set_eviction_queue.h"
21 22
22 namespace cc { 23 namespace cc {
23 24
24 struct AppendQuadsData; 25 struct AppendQuadsData;
25 class MicroBenchmarkImpl; 26 class MicroBenchmarkImpl;
26 class Tile; 27 class Tile;
27 28
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PictureLayerImpl* GetPendingOrActiveTwinLayer() const; 92 PictureLayerImpl* GetPendingOrActiveTwinLayer() const;
92 bool IsOnActiveOrPendingTree() const; 93 bool IsOnActiveOrPendingTree() const;
93 94
94 // Used for benchmarking 95 // Used for benchmarking
95 RasterSource* GetRasterSource() const { return raster_source_.get(); } 96 RasterSource* GetRasterSource() const { return raster_source_.get(); }
96 97
97 void set_is_directly_composited_image(bool is_directly_composited_image) { 98 void set_is_directly_composited_image(bool is_directly_composited_image) {
98 is_directly_composited_image_ = is_directly_composited_image; 99 is_directly_composited_image_ = is_directly_composited_image;
99 } 100 }
100 101
102 void InvalidateRegionForImages(
103 const std::unordered_set<ImageId>& images_to_invalidate);
104
101 protected: 105 protected:
102 PictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask); 106 PictureLayerImpl(LayerTreeImpl* tree_impl, int id, bool is_mask);
103 PictureLayerTiling* AddTiling(float contents_scale); 107 PictureLayerTiling* AddTiling(float contents_scale);
104 void RemoveAllTilings(); 108 void RemoveAllTilings();
105 void AddTilingsForRasterScale(); 109 void AddTilingsForRasterScale();
106 void AddLowResolutionTilingIfNeeded(); 110 void AddLowResolutionTilingIfNeeded();
107 bool ShouldAdjustRasterScale() const; 111 bool ShouldAdjustRasterScale() const;
108 void RecalculateRasterScales(); 112 void RecalculateRasterScales();
109 void CleanUpTilingsOnActiveLayer( 113 void CleanUpTilingsOnActiveLayer(
110 const std::vector<PictureLayerTiling*>& used_tilings); 114 const std::vector<PictureLayerTiling*>& used_tilings);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // of comparing pointers, since objects pointed to are not guaranteed to 164 // of comparing pointers, since objects pointed to are not guaranteed to
161 // exist. 165 // exist.
162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 166 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
163 167
164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 168 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
165 }; 169 };
166 170
167 } // namespace cc 171 } // namespace cc
168 172
169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 173 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/BUILD.gn ('k') | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698