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

Side by Side Diff: third_party/WebKit/public/platform/WebImageLayer.h

Issue 1331533002: [poc] curve-filter Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ensure screen device profiles are matrix Created 4 years, 12 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
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 12 matching lines...) Expand all
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25 25
26 #ifndef WebImageLayer_h 26 #ifndef WebImageLayer_h
27 #define WebImageLayer_h 27 #define WebImageLayer_h
28 28
29 #include "WebCommon.h" 29 #include "WebCommon.h"
30 #include "WebLayer.h" 30 #include "WebLayer.h"
31 31
32 class SkBitmap; 32 class SkBitmap;
33 class SkColorFilter;
33 class SkImage; 34 class SkImage;
34 35
35 namespace blink { 36 namespace blink {
36 37
37 class WebImageLayer { 38 class WebImageLayer {
38 public: 39 public:
39 virtual ~WebImageLayer() { } 40 virtual ~WebImageLayer() { }
40 41
41 virtual WebLayer* layer() = 0; 42 virtual WebLayer* layer() = 0;
42 virtual void setImage(const SkImage*) = 0; 43 virtual void setImage(const SkImage*, SkColorFilter* = nullptr) = 0;
43 virtual void setNearestNeighbor(bool) = 0; 44 virtual void setNearestNeighbor(bool) = 0;
44 }; 45 };
45 46
46 } // namespace blink 47 } // namespace blink
47 48
48 #endif // WebImageLayer_h 49 #endif // WebImageLayer_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/image-decoders/webp/WEBPImageDecoder.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698