| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. |
| 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> | 3 * Copyright (C) 2008 Eric Seidel <eric@webkit.org> |
| 4 * Copyright (C) 2007-2008 Torch Mobile, Inc. | 4 * Copyright (C) 2007-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 17 matching lines...) Expand all Loading... |
| 28 | 28 |
| 29 #ifndef Pattern_h | 29 #ifndef Pattern_h |
| 30 #define Pattern_h | 30 #define Pattern_h |
| 31 | 31 |
| 32 #include "platform/PlatformExport.h" | 32 #include "platform/PlatformExport.h" |
| 33 #include "platform/graphics/Image.h" | 33 #include "platform/graphics/Image.h" |
| 34 #include "platform/graphics/paint/PaintRecord.h" | 34 #include "platform/graphics/paint/PaintRecord.h" |
| 35 #include "platform/graphics/paint/PaintShader.h" | 35 #include "platform/graphics/paint/PaintShader.h" |
| 36 #include "third_party/skia/include/core/SkRefCnt.h" | 36 #include "third_party/skia/include/core/SkRefCnt.h" |
| 37 | 37 |
| 38 #include "wtf/Noncopyable.h" | 38 #include "platform/wtf/Noncopyable.h" |
| 39 #include "wtf/PassRefPtr.h" | 39 #include "platform/wtf/PassRefPtr.h" |
| 40 #include "wtf/RefCounted.h" | 40 #include "platform/wtf/RefCounted.h" |
| 41 | 41 |
| 42 class SkMatrix; | 42 class SkMatrix; |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class PLATFORM_EXPORT Pattern : public RefCounted<Pattern> { | 46 class PLATFORM_EXPORT Pattern : public RefCounted<Pattern> { |
| 47 WTF_MAKE_NONCOPYABLE(Pattern); | 47 WTF_MAKE_NONCOPYABLE(Pattern); |
| 48 | 48 |
| 49 public: | 49 public: |
| 50 enum RepeatMode { | 50 enum RepeatMode { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 81 Pattern(RepeatMode, int64_t externalMemoryAllocated = 0); | 81 Pattern(RepeatMode, int64_t externalMemoryAllocated = 0); |
| 82 mutable sk_sp<PaintShader> m_cachedShader; | 82 mutable sk_sp<PaintShader> m_cachedShader; |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 int64_t m_externalMemoryAllocated; | 85 int64_t m_externalMemoryAllocated; |
| 86 }; | 86 }; |
| 87 | 87 |
| 88 } // namespace blink | 88 } // namespace blink |
| 89 | 89 |
| 90 #endif | 90 #endif |
| OLD | NEW |