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

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

Issue 1497683002: Make platform/graphics to use USING_FAST_MALLOC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
OLDNEW
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 15 matching lines...) Expand all
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
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/transforms/AffineTransform.h" 34 #include "platform/transforms/AffineTransform.h"
35 35
36 #include "wtf/Noncopyable.h"
36 #include "wtf/PassRefPtr.h" 37 #include "wtf/PassRefPtr.h"
37 #include "wtf/RefCounted.h" 38 #include "wtf/RefCounted.h"
38 #include "wtf/RefPtr.h" 39 #include "wtf/RefPtr.h"
39 40
40 class SkPaint; 41 class SkPaint;
41 class SkPicture; 42 class SkPicture;
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class PLATFORM_EXPORT Pattern : public RefCounted<Pattern> { 46 class PLATFORM_EXPORT Pattern : public RefCounted<Pattern> {
47 WTF_MAKE_NONCOPYABLE(Pattern);
46 public: 48 public:
47 enum RepeatMode { 49 enum RepeatMode {
48 RepeatModeX = 1 << 0, 50 RepeatModeX = 1 << 0,
49 RepeatModeY = 1 << 1, 51 RepeatModeY = 1 << 1,
50 52
51 RepeatModeNone = 0, 53 RepeatModeNone = 0,
52 RepeatModeXY = RepeatModeX | RepeatModeY 54 RepeatModeXY = RepeatModeX | RepeatModeY
53 }; 55 };
54 56
55 static PassRefPtr<Pattern> createImagePattern(PassRefPtr<Image>, RepeatMode = RepeatModeXY); 57 static PassRefPtr<Pattern> createImagePattern(PassRefPtr<Image>, RepeatMode = RepeatModeXY);
(...skipping 23 matching lines...) Expand all
79 Pattern(RepeatMode, int64_t externalMemoryAllocated = 0); 81 Pattern(RepeatMode, int64_t externalMemoryAllocated = 0);
80 82
81 private: 83 private:
82 RefPtr<SkShader> m_pattern; 84 RefPtr<SkShader> m_pattern;
83 int64_t m_externalMemoryAllocated; 85 int64_t m_externalMemoryAllocated;
84 }; 86 };
85 87
86 } // namespace blink 88 } // namespace blink
87 89
88 #endif 90 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698