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

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

Issue 2525453002: Raster: Allow a RasterSource to specify its color space (Closed)
Patch Set: Only set implied space when color correct rendering is disabled Created 4 years 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/graphics/ContentLayerDelegate.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 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 WebDisplayItemList_h 5 #ifndef WebDisplayItemList_h
6 #define WebDisplayItemList_h 6 #define WebDisplayItemList_h
7 7
8 #include "WebBlendMode.h" 8 #include "WebBlendMode.h"
9 #include "WebFloatPoint.h" 9 #include "WebFloatPoint.h"
10 #include "WebFloatRect.h" 10 #include "WebFloatRect.h"
11 #include "WebRect.h" 11 #include "WebRect.h"
12 #include "WebSize.h" 12 #include "WebSize.h"
13 #include "WebVector.h" 13 #include "WebVector.h"
14 14
15 #include "third_party/skia/include/core/SkBlendMode.h" 15 #include "third_party/skia/include/core/SkBlendMode.h"
16 #include "third_party/skia/include/core/SkRefCnt.h" 16 #include "third_party/skia/include/core/SkRefCnt.h"
17 #include "third_party/skia/include/core/SkRegion.h" 17 #include "third_party/skia/include/core/SkRegion.h"
18 18
19 class SkColorFilter; 19 class SkColorFilter;
20 class SkImageFilter; 20 class SkImageFilter;
21 class SkMatrix44; 21 class SkMatrix44;
22 class SkPicture; 22 class SkPicture;
23 struct SkRect; 23 struct SkRect;
24 class SkRRect; 24 class SkRRect;
25 25
26 namespace cc { 26 namespace cc {
27 class FilterOperations; 27 class FilterOperations;
28 } 28 }
29 29
30 namespace gfx {
31 class ColorSpace;
32 }
33
30 namespace blink { 34 namespace blink {
31 35
32 // An ordered list of items representing content to be rendered (stored in 36 // An ordered list of items representing content to be rendered (stored in
33 // 'drawing' items) and operations to be performed when rendering this content 37 // 'drawing' items) and operations to be performed when rendering this content
34 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: 38 // (stored in 'clip', 'transform', 'filter', etc...). For more details see:
35 // http://dev.chromium.org/blink/slimming-paint. 39 // http://dev.chromium.org/blink/slimming-paint.
36 class WebDisplayItemList { 40 class WebDisplayItemList {
37 public: 41 public:
38 virtual ~WebDisplayItemList() {} 42 virtual ~WebDisplayItemList() {}
39 43
(...skipping 22 matching lines...) Expand all
62 const WebFloatPoint& origin) {} 66 const WebFloatPoint& origin) {}
63 virtual void appendEndFilterItem() {} 67 virtual void appendEndFilterItem() {}
64 68
65 // Scroll containers are identified by an opaque pointer. 69 // Scroll containers are identified by an opaque pointer.
66 using ScrollContainerId = const void*; 70 using ScrollContainerId = const void*;
67 virtual void appendScrollItem(const WebSize& scrollOffset, 71 virtual void appendScrollItem(const WebSize& scrollOffset,
68 ScrollContainerId) {} 72 ScrollContainerId) {}
69 virtual void appendEndScrollItem() {} 73 virtual void appendEndScrollItem() {}
70 74
71 virtual void setIsSuitableForGpuRasterization(bool isSuitable) {} 75 virtual void setIsSuitableForGpuRasterization(bool isSuitable) {}
76
77 // Specifies the color space that the inputs of this display list were
78 // pre-converted into. If this is specified, then rasterization must not
79 // perform any color correction, and the result must be interpreted as being
80 // in this color space.
81 virtual void setImpliedColorSpace(const gfx::ColorSpace&) {}
72 }; 82 };
73 83
74 } // namespace blink 84 } // namespace blink
75 85
76 #endif // WebDisplayItemList_h 86 #endif // WebDisplayItemList_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698