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

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

Issue 2835373003: Plumb PaintImage to the PictureImageLayer. (Closed)
Patch Set: Created 3 years, 7 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) 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 11 matching lines...) Expand all
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
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 SkImage; 32 #if INSIDE_BLINK
vmpstr 2017/04/25 22:05:46 Not really sure if there's a better magic here...
33 #include "platform/graphics/paint/PaintImage.h"
34 #else
35 #include "cc/paint/paint_image.h"
36 using PaintImage = cc::PaintImage;
37 #endif
33 38
34 namespace blink { 39 namespace blink {
35 40
36 class WebImageLayer { 41 class WebImageLayer {
37 public: 42 public:
38 virtual ~WebImageLayer() {} 43 virtual ~WebImageLayer() {}
39 44
40 virtual WebLayer* Layer() = 0; 45 virtual WebLayer* Layer() = 0;
41 virtual void SetImage(const SkImage*) = 0; 46 virtual void SetImage(PaintImage) = 0;
42 virtual void SetNearestNeighbor(bool) = 0; 47 virtual void SetNearestNeighbor(bool) = 0;
43 }; 48 };
44 49
45 } // namespace blink 50 } // namespace blink
46 51
47 #endif // WebImageLayer_h 52 #endif // WebImageLayer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698