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

Side by Side Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1466773002: Make ImageBitmap::cropImage a static function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ImageBitmap_h 5 #ifndef ImageBitmap_h
6 #define ImageBitmap_h 6 #define ImageBitmap_h
7 7
8 #include "bindings/core/v8/ScriptWrappable.h" 8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "core/CoreExport.h" 9 #include "core/CoreExport.h"
10 #include "core/html/HTMLImageElement.h" 10 #include "core/html/HTMLImageElement.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 DECLARE_VIRTUAL_TRACE(); 50 DECLARE_VIRTUAL_TRACE();
51 51
52 private: 52 private:
53 ImageBitmap(HTMLImageElement*, const IntRect&); 53 ImageBitmap(HTMLImageElement*, const IntRect&);
54 ImageBitmap(HTMLVideoElement*, const IntRect&); 54 ImageBitmap(HTMLVideoElement*, const IntRect&);
55 ImageBitmap(HTMLCanvasElement*, const IntRect&); 55 ImageBitmap(HTMLCanvasElement*, const IntRect&);
56 ImageBitmap(ImageData*, const IntRect&); 56 ImageBitmap(ImageData*, const IntRect&);
57 ImageBitmap(ImageBitmap*, const IntRect&); 57 ImageBitmap(ImageBitmap*, const IntRect&);
58 ImageBitmap(Image*, const IntRect&); 58 ImageBitmap(Image*, const IntRect&);
59 59
60 PassRefPtr<SkImage> cropImage(PassRefPtr<SkImage>, const IntRect&);
61
62 // ImageLoaderClient 60 // ImageLoaderClient
63 void notifyImageSourceChanged() override; 61 void notifyImageSourceChanged() override;
64 bool requestsHighLiveResourceCachePriority() override { return true; } 62 bool requestsHighLiveResourceCachePriority() override { return true; }
65 63
66 RefPtr<SkImage> m_image; 64 RefPtr<SkImage> m_image;
67 }; 65 };
68 66
69 } // namespace blink 67 } // namespace blink
70 68
71 #endif // ImageBitmap_h 69 #endif // ImageBitmap_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698