Repository navigation
Implement an ID2D1RenderTarget-backed CGContext #1126
Changes from 10 commits
e48478f
bbdca81
ae5952f
ee32f28
b329ee6
210f3f6
12c0a00
f1a0595
d2c451b
a481d28
45db116
50433dd
bbaf097
1725016
076e4ce
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,7 @@ CGImageRef CGBitmapContextCreateImage(CGContextRef context) { | |
| @Notes | ||
| */ | ||
| CGBitmapInfo CGBitmapContextGetBitmapInfo(CGContextRef context) { | ||
| #if 0 | ||
|
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. Why the #if 0s? If this is because of he refactor Jeyaraj (@msft-Jeyaram) is doing, we might as well remove this code and add it back as needed. Presumably, we will still not do the context->Backing()->DestImage()->Backing()->Dosomething() anymore. #Resolved |
||
| int ret; | ||
|
|
||
| if (context) { | ||
|
|
@@ -66,13 +67,16 @@ CGBitmapInfo CGBitmapContextGetBitmapInfo(CGContextRef context) { | |
| } | ||
|
|
||
| return (CGBitmapInfo)ret; | ||
| #endif | ||
| return 0; | ||
| } | ||
|
|
||
| /** | ||
| @Status Interoperable | ||
| @Notes | ||
| */ | ||
| CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { | ||
| #if 0 | ||
| int ret; | ||
|
|
||
| if (context) { | ||
|
|
@@ -84,16 +88,21 @@ CGImageAlphaInfo CGBitmapContextGetAlphaInfo(CGContextRef context) { | |
| } | ||
|
|
||
| return (CGImageAlphaInfo)ret; | ||
| #endif | ||
| return (CGImageAlphaInfo)0; | ||
| } | ||
|
|
||
| /** | ||
| @Status Interoperable | ||
| @Notes | ||
| */ | ||
| size_t CGBitmapContextGetBitsPerComponent(CGContextRef context) { | ||
| #if 0 | ||
| CGImageRef imageRef = context->Backing()->DestImage(); | ||
|
Member
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. nit: I don't think we'll miss anything but since these are technically being converted to stubs should we be changing the @status on these to stubs for proper tracking? #WontFix
Author
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. I attempted to cover that here. :) #WontFix |
||
| size_t bitsPerComponent = CGImageGetBitsPerComponent(imageRef); | ||
| return bitsPerComponent; | ||
| #endif | ||
| return 0; | ||
| } | ||
|
|
||
| /** | ||
|
|
@@ -102,10 +111,13 @@ size_t CGBitmapContextGetBitsPerComponent(CGContextRef context) { | |
| Expect returns of 24 bits on Islandwood where 32 bits is expected on iOS. | ||
| */ | ||
| size_t CGBitmapContextGetBitsPerPixel(CGContextRef context) { | ||
| return 0; | ||
| #if 0 | ||
| CGImageRef imageRef = context->Backing()->DestImage(); | ||
| const size_t bytesPerPixel = imageRef->Backing()->BytesPerPixel(); | ||
| const size_t bitsPerByte = 8; | ||
| return bytesPerPixel * bitsPerByte; | ||
| #endif | ||
| } | ||
|
|
||
| /** | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
This has been a pain in my side for literal years. #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.
:D
In reply to: 82900097 [](ancestors = 82900097)
Uh oh!
There was an error while loading. Please reload this page.
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.
👏 #Closed