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

Side by Side Diff: cc/blink/web_layer_impl.h

Issue 2033513003: (NOT FOR COMMIT) Testing layer invalidation speedups. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/base/invalidation_region.cc ('k') | cc/blink/web_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_BLINK_WEB_LAYER_IMPL_H_ 5 #ifndef CC_BLINK_WEB_LAYER_IMPL_H_
6 #define CC_BLINK_WEB_LAYER_IMPL_H_ 6 #define CC_BLINK_WEB_LAYER_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 CC_BLINK_EXPORT cc::Layer* layer() const; 53 CC_BLINK_EXPORT cc::Layer* layer() const;
54 54
55 // If set to true, content opaqueness cannot be changed using setOpaque. 55 // If set to true, content opaqueness cannot be changed using setOpaque.
56 // However, it can still be modified using SetContentsOpaque on the 56 // However, it can still be modified using SetContentsOpaque on the
57 // cc::Layer. 57 // cc::Layer.
58 CC_BLINK_EXPORT void SetContentsOpaqueIsFixed(bool fixed); 58 CC_BLINK_EXPORT void SetContentsOpaqueIsFixed(bool fixed);
59 59
60 // WebLayer implementation. 60 // WebLayer implementation.
61 int id() const override; 61 int id() const override;
62 void invalidateRect(const blink::WebRect&) override; 62 void invalidateRect(const blink::WebRect&) override;
63 void invalidateRects(const std::vector<blink::WebRect>&) override;
63 void invalidate() override; 64 void invalidate() override;
64 void addChild(blink::WebLayer* child) override; 65 void addChild(blink::WebLayer* child) override;
65 void insertChild(blink::WebLayer* child, size_t index) override; 66 void insertChild(blink::WebLayer* child, size_t index) override;
66 void replaceChild(blink::WebLayer* reference, 67 void replaceChild(blink::WebLayer* reference,
67 blink::WebLayer* new_layer) override; 68 blink::WebLayer* new_layer) override;
68 void removeFromParent() override; 69 void removeFromParent() override;
69 void removeAllChildren() override; 70 void removeAllChildren() override;
70 void setBounds(const blink::WebSize& bounds) override; 71 void setBounds(const blink::WebSize& bounds) override;
71 blink::WebSize bounds() const override; 72 blink::WebSize bounds() const override;
72 void setMasksToBounds(bool masks_to_bounds) override; 73 void setMasksToBounds(bool masks_to_bounds) override;
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 141
141 bool contents_opaque_is_fixed_; 142 bool contents_opaque_is_fixed_;
142 143
143 private: 144 private:
144 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl); 145 DISALLOW_COPY_AND_ASSIGN(WebLayerImpl);
145 }; 146 };
146 147
147 } // namespace cc_blink 148 } // namespace cc_blink
148 149
149 #endif // CC_BLINK_WEB_LAYER_IMPL_H_ 150 #endif // CC_BLINK_WEB_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/base/invalidation_region.cc ('k') | cc/blink/web_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698