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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.h

Issue 2820133005: Revert of Back PaintRecord with PaintOpBuffer instead of SkPicture (Closed)
Patch Set: Created 3 years, 8 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 // 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 DrawingDisplayItem_h 5 #ifndef DrawingDisplayItem_h
6 #define DrawingDisplayItem_h 6 #define DrawingDisplayItem_h
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "platform/PlatformExport.h" 9 #include "platform/PlatformExport.h"
10 #include "platform/RuntimeEnabledFeatures.h" 10 #include "platform/RuntimeEnabledFeatures.h"
(...skipping 23 matching lines...) Expand all
34 WebDisplayItemList*) const override; 34 WebDisplayItemList*) const override;
35 bool DrawsContent() const override; 35 bool DrawsContent() const override;
36 36
37 const sk_sp<const PaintRecord>& GetPaintRecord() const { return record_; } 37 const sk_sp<const PaintRecord>& GetPaintRecord() const { return record_; }
38 38
39 bool KnownToBeOpaque() const { 39 bool KnownToBeOpaque() const {
40 DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled()); 40 DCHECK(RuntimeEnabledFeatures::slimmingPaintV2Enabled());
41 return known_to_be_opaque_; 41 return known_to_be_opaque_;
42 } 42 }
43 43
44 int NumberOfSlowPaths() const override; 44 void AnalyzeForGpuRasterization(SkPictureGpuAnalyzer&) const override;
45 45
46 private: 46 private:
47 #ifndef NDEBUG 47 #ifndef NDEBUG
48 void DumpPropertiesAsDebugString(WTF::StringBuilder&) const override; 48 void DumpPropertiesAsDebugString(WTF::StringBuilder&) const override;
49 #endif 49 #endif
50 bool Equals(const DisplayItem& other) const final; 50 bool Equals(const DisplayItem& other) const final;
51 51
52 sk_sp<const PaintRecord> record_; 52 sk_sp<const PaintRecord> record_;
53 53
54 // True if there are no transparent areas. Only used for SlimmingPaintV2. 54 // True if there are no transparent areas. Only used for SlimmingPaintV2.
55 const bool known_to_be_opaque_; 55 const bool known_to_be_opaque_;
56 }; 56 };
57 57
58 } // namespace blink 58 } // namespace blink
59 59
60 #endif // DrawingDisplayItem_h 60 #endif // DrawingDisplayItem_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698