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

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

Issue 927783002: cc: Stop passing the occlusion explicitly to AppendQuads. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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/picture_image_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 <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 } 48 }
49 ~PictureLayerImpl() override; 49 ~PictureLayerImpl() override;
50 50
51 bool is_mask() const { return is_mask_; } 51 bool is_mask() const { return is_mask_; }
52 52
53 // LayerImpl overrides. 53 // LayerImpl overrides.
54 const char* LayerTypeAsString() const override; 54 const char* LayerTypeAsString() const override;
55 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override; 55 scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* tree_impl) override;
56 void PushPropertiesTo(LayerImpl* layer) override; 56 void PushPropertiesTo(LayerImpl* layer) override;
57 void AppendQuads(RenderPass* render_pass, 57 void AppendQuads(RenderPass* render_pass,
58 const Occlusion& occlusion_in_content_space,
59 AppendQuadsData* append_quads_data) override; 58 AppendQuadsData* append_quads_data) override;
60 void NotifyTileStateChanged(const Tile* tile) override; 59 void NotifyTileStateChanged(const Tile* tile) override;
61 void DidBeginTracing() override; 60 void DidBeginTracing() override;
62 void ReleaseResources() override; 61 void ReleaseResources() override;
63 void RecreateResources() override; 62 void RecreateResources() override;
64 skia::RefPtr<SkPicture> GetPicture() override; 63 skia::RefPtr<SkPicture> GetPicture() override;
65 64
66 // PictureLayerTilingClient overrides. 65 // PictureLayerTilingClient overrides.
67 scoped_refptr<Tile> CreateTile(float contents_scale, 66 scoped_refptr<Tile> CreateTile(float contents_scale,
68 const gfx::Rect& content_rect) override; 67 const gfx::Rect& content_rect) override;
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 // of comparing pointers, since objects pointed to are not guaranteed to 176 // of comparing pointers, since objects pointed to are not guaranteed to
178 // exist. 177 // exist.
179 std::vector<PictureLayerTiling*> last_append_quads_tilings_; 178 std::vector<PictureLayerTiling*> last_append_quads_tilings_;
180 179
181 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl); 180 DISALLOW_COPY_AND_ASSIGN(PictureLayerImpl);
182 }; 181 };
183 182
184 } // namespace cc 183 } // namespace cc
185 184
186 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_ 185 #endif // CC_LAYERS_PICTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/picture_image_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