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

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

Issue 2560723006: [2/5] Disable transformed rasterization if layer is opaque (Closed)
Patch Set: Created 4 years 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>
(...skipping 19 matching lines...) Expand all
30 NON_EXPORTED_BASE(public PictureLayerTilingClient) { 30 NON_EXPORTED_BASE(public PictureLayerTilingClient) {
31 public: 31 public:
32 static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl, 32 static std::unique_ptr<PictureLayerImpl> Create(LayerTreeImpl* tree_impl,
33 int id, 33 int id,
34 bool is_mask) { 34 bool is_mask) {
35 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, is_mask)); 35 return base::WrapUnique(new PictureLayerImpl(tree_impl, id, is_mask));
36 } 36 }
37 ~PictureLayerImpl() override; 37 ~PictureLayerImpl() override;
38 38
39 bool is_mask() const { return is_mask_; } 39 bool is_mask() const { return is_mask_; }
40 void ResetRasterScale();
40 41
41 // LayerImpl overrides. 42 // LayerImpl overrides.
42 const char* LayerTypeAsString() const override; 43 const char* LayerTypeAsString() const override;
43 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 44 std::unique_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
44 void PushPropertiesTo(LayerImpl* layer) override; 45 void PushPropertiesTo(LayerImpl* layer) override;
45 void AppendQuads(RenderPass* render_pass, 46 void AppendQuads(RenderPass* render_pass,
46 AppendQuadsData* append_quads_data) override; 47 AppendQuadsData* append_quads_data) override;
47 void NotifyTileStateChanged(const Tile* tile) override; 48 void NotifyTileStateChanged(const Tile* tile) override;
48 void ResetRasterScale(); 49 SimpleEnclosedRegion VisibleOpaqueRegion() const override;
50
49 void DidBeginTracing() override; 51 void DidBeginTracing() override;
50 void ReleaseResources() override; 52 void ReleaseResources() override;
51 void ReleaseTileResources() override; 53 void ReleaseTileResources() override;
52 void RecreateTileResources() override; 54 void RecreateTileResources() override;
53 Region GetInvalidationRegionForDebugging() override; 55 Region GetInvalidationRegionForDebugging() override;
54 56
55 // PictureLayerTilingClient overrides. 57 // PictureLayerTilingClient overrides.
56 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override; 58 ScopedTilePtr CreateTile(const Tile::CreateInfo& info) override;
57 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override; 59 gfx::Size CalculateTileSize(const gfx::Size& content_bounds) const override;
58 const Region* GetPendingInvalidation() override; 60 const Region* GetPendingInvalidation() override;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // of comparing pointers, since objects pointed to are not guaranteed to 165 // of comparing pointers, since objects pointed to are not guaranteed to
164 // exist. 166 // exist.
165 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 167 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 169 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
168 }; 170 };
169 171
170 } // namespace cc 172 } // namespace cc
171 173
172 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 174 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698