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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/BoxReflection.h

Issue 2387803002: Use SkPaintImageFilter of a bitmap to implement box reflection masks. (Closed)
Patch Set: Created 4 years, 2 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BoxReflection_h 5 #ifndef BoxReflection_h
6 #define BoxReflection_h 6 #define BoxReflection_h
7 7
8 #include "platform/PlatformExport.h" 8 #include "platform/PlatformExport.h"
9 #include "third_party/skia/include/core/SkPicture.h" 9 #include "third_party/skia/include/core/SkPicture.h"
10 #include "wtf/PassRefPtr.h" 10 #include "wtf/PassRefPtr.h"
11 #include "wtf/RefPtr.h" 11 #include "wtf/RefPtr.h"
12 12
13 class SkImageFilter; 13 class SkImageFilter;
14 class SkMatrix; 14 class SkMatrix;
15 class SkPicture;
16 15
17 namespace blink { 16 namespace blink {
18 17
19 class FloatRect; 18 class FloatRect;
20 19
21 // A reflection, as created by -webkit-box-reflect. Consists of: 20 // A reflection, as created by -webkit-box-reflect. Consists of:
22 // * a direction (either vertical or horizontal) 21 // * a direction (either vertical or horizontal)
23 // * an offset to be applied to the reflection after flipping about the 22 // * an offset to be applied to the reflection after flipping about the
24 // x- or y-axis, according to the direction 23 // x- or y-axis, according to the direction
25 // * a mask image, which will be applied to the reflection before the 24 // * a mask image, which will be applied to the reflection before the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 } 64 }
66 65
67 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) 66 inline bool operator!=(const BoxReflection& a, const BoxReflection& b)
68 { 67 {
69 return !(a == b); 68 return !(a == b);
70 } 69 }
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif // BoxReflection_h 73 #endif // BoxReflection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698