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

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

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build. Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/web.gypi ('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"
(...skipping 16 matching lines...) Expand all
27 27
28 // An ordered list of items representing content to be rendered (stored in 28 // An ordered list of items representing content to be rendered (stored in
29 // 'drawing' items) and operations to be performed when rendering this content 29 // 'drawing' items) and operations to be performed when rendering this content
30 // (stored in 'clip', 'transform', 'filter', etc...). For more details see: 30 // (stored in 'clip', 'transform', 'filter', etc...). For more details see:
31 // http://dev.chromium.org/blink/slimming-paint. 31 // http://dev.chromium.org/blink/slimming-paint.
32 class WebDisplayItemList { 32 class WebDisplayItemList {
33 public: 33 public:
34 virtual ~WebDisplayItemList() { } 34 virtual ~WebDisplayItemList() { }
35 35
36 // This grabs a ref on the passed-in SkPicture. 36 // This grabs a ref on the passed-in SkPicture.
37 virtual void appendDrawingItem(const SkPicture*) = 0; 37 virtual void appendDrawingItem(const SkPicture*) { }
38 38
39 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) = 0; 39 virtual void appendClipItem(const WebRect&, const WebVector<SkRRect>&) { }
40 virtual void appendEndClipItem() = 0; 40 virtual void appendEndClipItem() { }
41 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) = 0; 41 virtual void appendClipPathItem(const SkPath&, SkRegion::Op, bool antialias) { }
42 virtual void appendEndClipPathItem() = 0; 42 virtual void appendEndClipPathItem() { }
43 virtual void appendFloatClipItem(const WebFloatRect&) = 0; 43 virtual void appendFloatClipItem(const WebFloatRect&) { }
44 virtual void appendEndFloatClipItem() = 0; 44 virtual void appendEndFloatClipItem() { }
45 virtual void appendTransformItem(const SkMatrix44&) = 0; 45 virtual void appendTransformItem(const SkMatrix44&) { }
46 virtual void appendEndTransformItem() = 0; 46 virtual void appendEndTransformItem() { }
47 virtual void appendCompositingItem(float opacity, 47 virtual void appendCompositingItem(float opacity,
48 SkXfermode::Mode, SkRect* bounds, SkColorFilter*) = 0; 48 SkXfermode::Mode, SkRect* bounds, SkColorFilter*) { }
49 virtual void appendEndCompositingItem() = 0; 49 virtual void appendEndCompositingItem() { }
50 50
51 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) = 0; 51 virtual void appendFilterItem(const WebFilterOperations&, const WebFloatRect & bounds) { }
52 virtual void appendEndFilterItem() = 0; 52 virtual void appendEndFilterItem() { }
53 53
54 // Scroll containers are identified by an opaque pointer. 54 // Scroll containers are identified by an opaque pointer.
55 using ScrollContainerId = const void*; 55 using ScrollContainerId = const void*;
56 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) = 0; 56 virtual void appendScrollItem(const WebSize& scrollOffset, ScrollContainerId ) { }
57 virtual void appendEndScrollItem() = 0; 57 virtual void appendEndScrollItem() { }
58 }; 58 };
59 59
60 } // namespace blink 60 } // namespace blink
61 61
62 #endif // WebDisplayItemList_h 62 #endif // WebDisplayItemList_h
63 63
OLDNEW
« no previous file with comments | « Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698