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

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

Issue 2099903002: Make tile size a function of the device scale factor. Base URL: https://chromium.googlesource.com/chromium/src.git@layouttests-display
Patch Set: tilesize: . Created 4 years, 5 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 | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 11 matching lines...) Expand all
22 namespace cc { 22 namespace cc {
23 23
24 struct AppendQuadsData; 24 struct AppendQuadsData;
25 class MicroBenchmarkImpl; 25 class MicroBenchmarkImpl;
26 class Tile; 26 class Tile;
27 27
28 class CC_EXPORT PictureLayerImpl 28 class CC_EXPORT PictureLayerImpl
29 : public LayerImpl, 29 : public LayerImpl,
30 NON_EXPORTED_BASE(public PictureLayerTilingClient) { 30 NON_EXPORTED_BASE(public PictureLayerTilingClient) {
31 public: 31 public:
32 // TODO(crbug.com/622885): This should scale with the device scale factor.
33 enum : int { kMaxUntiledContentSize = 512 };
34
32 static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, 35 static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl,
33 int id, 36 int id,
34 bool is_mask) { 37 bool is_mask) {
35 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, is_mask)); 38 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, is_mask));
36 } 39 }
37 ~PictureLayerImpl() override; 40 ~PictureLayerImpl() override;
38 41
39 bool is_mask() const { return is_mask_; } 42 bool is_mask() const { return is_mask_; }
40 43
41 // LayerImpl overrides. 44 // LayerImpl overrides.
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // of comparing pointers, since objects pointed to are not guaranteed to 163 // of comparing pointers, since objects pointed to are not guaranteed to
161 // exist. 164 // exist.
162 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 165 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
163 166
164 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 167 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
165 }; 168 };
166 169
167 } // namespace cc 170 } // namespace cc
168 171
169 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 172 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl.cc » ('j') | cc/layers/picture_layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698