This repository was archived by the owner on Feb 25, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6k
Use DlPathEffect Object #32159
Merged
Merged
Use DlPathEffect Object #32159
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
a7c8b30
Define the DlPathEffect Object
JsouLiang 9ae1876
Complete the DlPathEffect Object
JsouLiang 360ef9b
Add DlPathEffect Unittests
JsouLiang c024ba9
Cut down only DLDashPathEffect
JsouLiang 19bbde9
Create Intervals by other mode
JsouLiang 731e605
Fix unittest issues
JsouLiang 42710b3
Delete base_quals, check array equal first
JsouLiang 40cbf6d
Change licenses file and deps
JsouLiang 4e99e81
Add effect_bounds for DlPathEffect; Delete invalid test cases;
JsouLiang 48c36d2
Change the intervals API; fix the DlUnknownPathEffect::effect_bounds …
JsouLiang d62c744
fix some suggests of comments
JsouLiang 254893d
Change SetPathEffect one line like the others
JsouLiang 81c2dcb
Change the DisplayListStreamDispatcher::setBlendMode api
JsouLiang 8da4757
Delete licenses
JsouLiang 0d2a021
change the display_list_dispatcher setPathEffect api
JsouLiang 938ca82
Update Licenses
JsouLiang 563d368
fix conflict
JsouLiang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,12 +5,14 @@ | |
| #ifndef FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PAINT_H_ | ||
| #define FLUTTER_DISPLAY_LIST_DISPLAY_LIST_PAINT_H_ | ||
|
|
||
| #include <memory> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is this used? |
||
| #include "flutter/display_list/display_list_blend_mode.h" | ||
| #include "flutter/display_list/display_list_color.h" | ||
| #include "flutter/display_list/display_list_color_filter.h" | ||
| #include "flutter/display_list/display_list_color_source.h" | ||
| #include "flutter/display_list/display_list_image_filter.h" | ||
| #include "flutter/display_list/display_list_mask_filter.h" | ||
| #include "flutter/display_list/display_list_path_effect.h" | ||
|
|
||
| namespace flutter { | ||
|
|
||
|
|
@@ -199,6 +201,15 @@ class DlPaint { | |
| return *this; | ||
| } | ||
|
|
||
| std::shared_ptr<const DlPathEffect> getPathEffect() const { | ||
| return pathEffect_; | ||
| } | ||
| const DlPathEffect* getPathEffectPtr() const { return pathEffect_.get(); } | ||
| DlPaint& setPathEffect(std::shared_ptr<DlPathEffect> pathEffect) { | ||
| pathEffect_ = pathEffect; | ||
| return *this; | ||
| } | ||
|
|
||
| bool operator==(DlPaint const& other) const; | ||
| bool operator!=(DlPaint const& other) const { return !(*this == other); } | ||
|
|
||
|
|
@@ -236,8 +247,8 @@ class DlPaint { | |
| std::shared_ptr<const DlColorFilter> colorFilter_; | ||
| std::shared_ptr<const DlImageFilter> imageFilter_; | ||
| std::shared_ptr<const DlMaskFilter> maskFilter_; | ||
| std::shared_ptr<const DlPathEffect> pathEffect_; | ||
| // missing (as compared to SkPaint): | ||
| // DlPathEffect - waiting for https://github.com/flutter/engine/pull/32159 | ||
| // DlBlender - not planning on using that object in a pure DisplayList world | ||
| }; | ||
|
|
||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.