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

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

Issue 23511004: mix-blend-mode implementation for accelerated layers - blink part (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed a failing reftest dependent on render-compositor bindings Created 7 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
« no previous file with comments | « public/platform/WebCompositingReasons.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
11 * notice, this list of conditions and the following disclaimer in the 11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution. 12 * documentation and/or other materials provided with the distribution.
13 * 13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
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 "WebBlendMode.h"
30 #include "WebColor.h" 31 #include "WebColor.h"
31 #include "WebCommon.h" 32 #include "WebCommon.h"
32 #include "WebCompositingReasons.h" 33 #include "WebCompositingReasons.h"
33 #include "WebPoint.h" 34 #include "WebPoint.h"
34 #include "WebRect.h" 35 #include "WebRect.h"
35 #include "WebString.h" 36 #include "WebString.h"
36 #include "WebVector.h" 37 #include "WebVector.h"
37 38
38 class SkMatrix44; 39 class SkMatrix44;
39 class SkImageFilter; 40 class SkImageFilter;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 80
80 virtual void setMasksToBounds(bool) = 0; 81 virtual void setMasksToBounds(bool) = 0;
81 virtual bool masksToBounds() const = 0; 82 virtual bool masksToBounds() const = 0;
82 83
83 virtual void setMaskLayer(WebLayer*) = 0; 84 virtual void setMaskLayer(WebLayer*) = 0;
84 virtual void setReplicaLayer(WebLayer*) = 0; 85 virtual void setReplicaLayer(WebLayer*) = 0;
85 86
86 virtual void setOpacity(float) = 0; 87 virtual void setOpacity(float) = 0;
87 virtual float opacity() const = 0; 88 virtual float opacity() const = 0;
88 89
90 // FIXME: Make pure virtual after implementation lands.
91 virtual void setBlendMode(WebBlendMode) { }
92 virtual WebBlendMode blendMode() const { return WebBlendModeNormal; }
93
94 // FIXME: Make pure virtual after implementation lands.
95 virtual void setIsRootForIsolatedGroup(bool) { }
96 virtual bool isRootForIsolatedGroup() { return false; }
97
89 virtual void setOpaque(bool) = 0; 98 virtual void setOpaque(bool) = 0;
90 virtual bool opaque() const = 0; 99 virtual bool opaque() const = 0;
91 100
92 virtual void setPosition(const WebFloatPoint&) = 0; 101 virtual void setPosition(const WebFloatPoint&) = 0;
93 virtual WebFloatPoint position() const = 0; 102 virtual WebFloatPoint position() const = 0;
94 103
95 virtual void setSublayerTransform(const SkMatrix44&) = 0; 104 virtual void setSublayerTransform(const SkMatrix44&) = 0;
96 virtual SkMatrix44 sublayerTransform() const = 0; 105 virtual SkMatrix44 sublayerTransform() const = 0;
97 106
98 virtual void setTransform(const SkMatrix44&) = 0; 107 virtual void setTransform(const SkMatrix44&) = 0;
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 219
211 // True if the layer is not part of a tree attached to a WebLayerTreeView. 220 // True if the layer is not part of a tree attached to a WebLayerTreeView.
212 virtual bool isOrphan() const = 0; 221 virtual bool isOrphan() const = 0;
213 222
214 virtual void setWebLayerClient(WebLayerClient*) = 0; 223 virtual void setWebLayerClient(WebLayerClient*) = 0;
215 }; 224 };
216 225
217 } // namespace blink 226 } // namespace blink
218 227
219 #endif // WebLayer_h 228 #endif // WebLayer_h
OLDNEW
« no previous file with comments | « public/platform/WebCompositingReasons.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698