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

Side by Side Diff: public/platform/WebLayer.h

Issue 15181006: Plumb CompositingReason from Blink to compositor. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed reviewer feedback Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebLayer_h 26 #ifndef WebLayer_h
27 #define WebLayer_h 27 #define WebLayer_h
28 28
29 #include "WebAnimation.h" 29 #include "WebAnimation.h"
30 #include "WebColor.h" 30 #include "WebColor.h"
31 #include "WebCommon.h" 31 #include "WebCommon.h"
32 #include "WebCompositingReasons.h"
32 33
33 // Remove after making setPositionConstraint() pure virtual. 34 // Remove after making setPositionConstraint() pure virtual.
34 #include "WebLayerPositionConstraint.h" 35 #include "WebLayerPositionConstraint.h"
35 36
36 #include "WebPoint.h" 37 #include "WebPoint.h"
37 #include "WebPrivatePtr.h" 38 #include "WebPrivatePtr.h"
38 #include "WebRect.h" 39 #include "WebRect.h"
39 #include "WebString.h" 40 #include "WebString.h"
40 #include "WebVector.h" 41 #include "WebVector.h"
41 42
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 134
134 // Apply filters to pixels that show through the background of this layer. 135 // Apply filters to pixels that show through the background of this layer.
135 // Note: These filters are only possible on layers that are drawn directly 136 // Note: These filters are only possible on layers that are drawn directly
136 // to a root render surface with an opaque background. This means if an 137 // to a root render surface with an opaque background. This means if an
137 // ancestor of the background-filtered layer sets certain properties 138 // ancestor of the background-filtered layer sets certain properties
138 // (opacity, transforms), it may conflict and hide the background filters. 139 // (opacity, transforms), it may conflict and hide the background filters.
139 virtual void setBackgroundFilters(const WebFilterOperations&) = 0; 140 virtual void setBackgroundFilters(const WebFilterOperations&) = 0;
140 141
141 virtual void setDebugName(WebString) = 0; 142 virtual void setDebugName(WebString) = 0;
142 143
144 // Provides a bitfield that describe why this composited layer was created.
145 // FIXME: non-pure until the chromium-side implements this.x
146 virtual void setCompositingReasons(WebCompositingReasons) { };
147
143 // An animation delegate is notified when animations are started and 148 // An animation delegate is notified when animations are started and
144 // stopped. The WebLayer does not take ownership of the delegate, and it is 149 // stopped. The WebLayer does not take ownership of the delegate, and it is
145 // the responsibility of the client to reset the layer's delegate before 150 // the responsibility of the client to reset the layer's delegate before
146 // deleting the delegate. 151 // deleting the delegate.
147 virtual void setAnimationDelegate(WebAnimationDelegate*) = 0; 152 virtual void setAnimationDelegate(WebAnimationDelegate*) = 0;
148 153
149 // Returns false if the animation cannot be added. 154 // Returns false if the animation cannot be added.
150 virtual bool addAnimation(WebAnimation*) = 0; 155 virtual bool addAnimation(WebAnimation*) = 0;
151 156
152 // Removes all animations with the given id. 157 // Removes all animations with the given id.
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 virtual bool isOrphan() const = 0; 220 virtual bool isOrphan() const = 0;
216 221
217 // DEPRECATED 222 // DEPRECATED
218 virtual void setFixedToContainerLayer(bool) { } 223 virtual void setFixedToContainerLayer(bool) { }
219 virtual bool fixedToContainerLayer() const { return positionConstraint().isF ixedPosition; } 224 virtual bool fixedToContainerLayer() const { return positionConstraint().isF ixedPosition; }
220 }; 225 };
221 226
222 } // namespace WebKit 227 } // namespace WebKit
223 228
224 #endif // WebLayer_h 229 #endif // WebLayer_h
OLDNEW
« Source/core/rendering/RenderLayerBacking.cpp ('K') | « public/platform/WebCompositingReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698