This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
macOS: Don't round-trip still images through encoding - #7812
Merged
Merged
Conversation
Member
Author
|
Similar uses are on iOS in |
Merged
Member
Author
|
Related: #7813 |
|
@kkaefer, thanks for your PR! By analyzing this pull request, we identified @1ec5, @jfirebaugh and @boundsj to be potential reviewers. |
1ec5
approved these changes
Jan 25, 2017
1ec5
left a comment
Contributor
There was a problem hiding this comment.
Love the use of stack-based memory management for the Core Graphics types.
Contributor
|
Looks like some non-SDK targets need to be updated, though: |
kkaefer
force-pushed
the
7812-macos-image-encoding
branch
from
January 26, 2017 10:36
8b3d13f to
0f809ef
Compare
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
When calling
encodePNG, on the bytes of the textures, only to decompress it in the very next line:mapbox-gl-native/platform/macos/src/MGLMapView.mm
Lines 790 to 792 in f1c3cfb
Instead, we can just use the data we already have to initialize the
NSImagewithout going through the compression/decompression routine.