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

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

Issue 1670463002: [Oilpan] Unify memory usage reporters of Oilpan (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 /* 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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 66
67 bool isRepeatX() { return m_repeatMode & RepeatModeX; } 67 bool isRepeatX() { return m_repeatMode & RepeatModeX; }
68 bool isRepeatY() { return m_repeatMode & RepeatModeY; } 68 bool isRepeatY() { return m_repeatMode & RepeatModeY; }
69 bool isRepeatXY() { return m_repeatMode == RepeatModeXY; } 69 bool isRepeatXY() { return m_repeatMode == RepeatModeXY; }
70 70
71 virtual bool isTextureBacked() const { return false; } 71 virtual bool isTextureBacked() const { return false; }
72 72
73 protected: 73 protected:
74 virtual PassRefPtr<SkShader> createShader() = 0; 74 virtual PassRefPtr<SkShader> createShader() = 0;
75 75
76 void adjustExternalMemoryAllocated(int64_t delta);
77
78 RepeatMode m_repeatMode; 76 RepeatMode m_repeatMode;
79 AffineTransform m_patternSpaceTransformation; 77 AffineTransform m_patternSpaceTransformation;
80 78
81 Pattern(RepeatMode, int64_t externalMemoryAllocated = 0); 79 Pattern(RepeatMode);
82 80
83 private: 81 private:
84 RefPtr<SkShader> m_pattern; 82 RefPtr<SkShader> m_pattern;
85 int64_t m_externalMemoryAllocated;
86 }; 83 };
87 84
88 } // namespace blink 85 } // namespace blink
89 86
90 #endif 87 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698