| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> | 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> |
| 4 * Copyright (C) 2008 Torch Mobile, Inc. | 4 * Copyright (C) 2008 Torch Mobile, Inc. |
| 5 * Copyright (C) 2013 Google Inc. All rights reserved. | 5 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef Gradient_h | 29 #ifndef Gradient_h |
| 30 #define Gradient_h | 30 #define Gradient_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/graphics/Color.h" | 33 #include "platform/graphics/Color.h" |
| 34 #include "platform/graphics/GraphicsTypes.h" | 34 #include "platform/graphics/GraphicsTypes.h" |
| 35 #include "platform/graphics/paint/PaintFlags.h" | 35 #include "platform/graphics/paint/PaintFlags.h" |
| 36 #include "platform/graphics/paint/PaintShader.h" | 36 #include "platform/graphics/paint/PaintShader.h" |
| 37 #include "platform/wtf/Noncopyable.h" |
| 38 #include "platform/wtf/PassRefPtr.h" |
| 39 #include "platform/wtf/RefCounted.h" |
| 40 #include "platform/wtf/Vector.h" |
| 37 #include "third_party/skia/include/core/SkRefCnt.h" | 41 #include "third_party/skia/include/core/SkRefCnt.h" |
| 38 #include "wtf/Noncopyable.h" | |
| 39 #include "wtf/PassRefPtr.h" | |
| 40 #include "wtf/RefCounted.h" | |
| 41 #include "wtf/Vector.h" | |
| 42 | 42 |
| 43 class SkMatrix; | 43 class SkMatrix; |
| 44 class SkShader; | 44 class SkShader; |
| 45 | 45 |
| 46 namespace blink { | 46 namespace blink { |
| 47 | 47 |
| 48 class FloatPoint; | 48 class FloatPoint; |
| 49 | 49 |
| 50 class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> { | 50 class PLATFORM_EXPORT Gradient : public RefCounted<Gradient> { |
| 51 WTF_MAKE_NONCOPYABLE(Gradient); | 51 WTF_MAKE_NONCOPYABLE(Gradient); |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 Vector<ColorStop, 2> m_stops; | 122 Vector<ColorStop, 2> m_stops; |
| 123 bool m_stopsSorted; | 123 bool m_stopsSorted; |
| 124 | 124 |
| 125 mutable sk_sp<PaintShader> m_cachedShader; | 125 mutable sk_sp<PaintShader> m_cachedShader; |
| 126 }; | 126 }; |
| 127 | 127 |
| 128 } // namespace blink | 128 } // namespace blink |
| 129 | 129 |
| 130 #endif | 130 #endif |
| OLD | NEW |