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

Side by Side Diff: third_party/WebKit/Source/core/fetch/ImageResource.h

Issue 1657883002: Fix leak PaintLayerReflectionInfo (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) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de)
3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org> 3 Copyright (C) 2001 Dirk Mueller <mueller@kde.org>
4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved. 5 Copyright (C) 2004, 2005, 2006, 2007 Apple Inc. All rights reserved.
6 6
7 This library is free software; you can redistribute it and/or 7 This library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library General Public 8 modify it under the terms of the GNU Library General Public
9 License as published by the Free Software Foundation; either 9 License as published by the Free Software Foundation; either
10 version 2 of the License, or (at your option) any later version. 10 version 2 of the License, or (at your option) any later version.
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 bool shouldPauseAnimation(const blink::Image*) override; 107 bool shouldPauseAnimation(const blink::Image*) override;
108 void animationAdvanced(const blink::Image*) override; 108 void animationAdvanced(const blink::Image*) override;
109 void changedInRect(const blink::Image*, const IntRect&) override; 109 void changedInRect(const blink::Image*, const IntRect&) override;
110 110
111 protected: 111 protected:
112 bool isSafeToUnlock() const override; 112 bool isSafeToUnlock() const override;
113 void destroyDecodedDataIfPossible() override; 113 void destroyDecodedDataIfPossible() override;
114 void destroyDecodedDataForFailedRevalidation() override; 114 void destroyDecodedDataForFailedRevalidation() override;
115 115
116 private: 116 private:
117 friend class PaintLayerTest;
118
117 class ImageResourceFactory : public ResourceFactory { 119 class ImageResourceFactory : public ResourceFactory {
118 public: 120 public:
119 ImageResourceFactory() 121 ImageResourceFactory()
120 : ResourceFactory(Resource::Image) { } 122 : ResourceFactory(Resource::Image) { }
121 123
122 Resource* create(const ResourceRequest& request, const String&) const ov erride 124 Resource* create(const ResourceRequest& request, const String&) const ov erride
123 { 125 {
124 return new ImageResource(request); 126 return new ImageResource(request);
125 } 127 }
126 }; 128 };
(...skipping 13 matching lines...) Expand all
140 142
141 RefPtr<blink::Image> m_image; 143 RefPtr<blink::Image> m_image;
142 bool m_hasDevicePixelRatioHeaderValue; 144 bool m_hasDevicePixelRatioHeaderValue;
143 }; 145 };
144 146
145 DEFINE_RESOURCE_TYPE_CASTS(Image); 147 DEFINE_RESOURCE_TYPE_CASTS(Image);
146 148
147 } // namespace blink 149 } // namespace blink
148 150
149 #endif 151 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/paint/PaintLayer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698