-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement new GetContextInfo API overloads #49186
Conversation
Note regarding the This serves as a reminder for when your PR is modifying a ref *.cs file and adding/modifying public APIs, to please make sure the API implementation in the src *.cs file is documented with triple slash comments, so the PR reviewers can sign off that change. |
Tagging subscribers to this area: @safern, @tarekgh Issue DetailsImplements #47880, adding new, more performant overloads for GetContextInfo.
|
cc: @dreddy-work @RussKie |
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Windows.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
src/libraries/System.Drawing.Common/src/System.Drawing.Common.csproj
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than a question and @ericstj suggestion to use the new ObsoleteAttribute with diagnostic ID, looks good to me.
@JeremyKuhne have you had a chance to resolve conflicts and @ericstj's concern? |
Sounds good. Just want to avoid it going stale 😊 |
Implements dotnet#47880, adding new, more performant overloads for GetContextInfo. - Add helper for only creating a region if it isn't infinite - Start an internal extensions class for easier mapping of System.Drawing concepts to System.Numerics types - Simplify GraphicsContext
f88c8e3
to
ade74ec
Compare
Resolved conflicts |
Can this make into P4? |
Thanks @JeremyKuhne it seems like you are still missing to use the "new" obsolete attribute that takes a diagnostic id. |
I'm working on it. |
I believe it needs to be merged by 4pm PST Fri |
@JeremyKuhne -- when you assign the diagnostic ID, please also add this new obsoletion to the table in the list of obsoletions document, and ensure the message used on the obsoletion has enough context to be meaningful in that document. |
Added the new obsolete pattern. |
src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Windows.cs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here are just a few extra suggestions on the obsoletions pattern. Sorry for the ambiguity in my previous comments.
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/src/System/Drawing/Graphics.Windows.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Drawing.Common/ref/System.Drawing.Common.csproj
Outdated
Show resolved
Hide resolved
Test failures are #51346 |
Merging since I just merged conflicts on the .md file and the previous build only had the known test failures from:#51346 |
Will work on opening the breaking change issue. |
Breaking change issue created: dotnet/docs#26785 |
Implements #47880, adding new, more performant overloads for GetContextInfo.