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

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

Issue 2379453002: Use SkPaintImageFilter of a bitmap to implement box reflection masks. (Closed)
Patch Set: Merge branch 'master' into fixboxreflect 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 "third_party/skia/include/core/SkRefCnt.h" 10 #include "third_party/skia/include/core/SkRefCnt.h"
11 11
12 class SkImageFilter; 12 class SkImageFilter;
13 class SkMatrix; 13 class SkMatrix;
14 class SkPicture;
15 14
16 namespace blink { 15 namespace blink {
17 16
18 class FloatRect; 17 class FloatRect;
19 18
20 // A reflection, as created by -webkit-box-reflect. Consists of: 19 // A reflection, as created by -webkit-box-reflect. Consists of:
21 // * a direction (either vertical or horizontal) 20 // * a direction (either vertical or horizontal)
22 // * an offset to be applied to the reflection after flipping about the 21 // * an offset to be applied to the reflection after flipping about the
23 // x- or y-axis, according to the direction 22 // x- or y-axis, according to the direction
24 // * a mask image, which will be applied to the reflection before the 23 // * a mask image, which will be applied to the reflection before the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 } 63 }
65 64
66 inline bool operator!=(const BoxReflection& a, const BoxReflection& b) 65 inline bool operator!=(const BoxReflection& a, const BoxReflection& b)
67 { 66 {
68 return !(a == b); 67 return !(a == b);
69 } 68 }
70 69
71 } // namespace blink 70 } // namespace blink
72 71
73 #endif // BoxReflection_h 72 #endif // BoxReflection_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698