Closed Bug 787225 Opened 12 years ago Closed 12 years ago

Skia symbols not exported from libgkmedias.dll

Categories

(Core :: Graphics, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED WONTFIX

People

(Reporter: joe, Assigned: gw280)

References

Details

Attachments

(1 file, 2 obsolete files)

Because we compile Skia as part of the external gkmedias DLL, we need to export its symbols to use them from other code.

I believe this will be solved if we globally define SKIA_DLL and, while compiling Skia itself, define SKIA_IMPLEMENTATION.
Attached patch Fix DLL exports (obsolete) — Splinter Review
Untested as I don't have easy access to a Win32 box. Can you test it?
Attachment #657361 - Flags: review?(joe)
In order to get SKIA_DLL defined across all of the code, the only reliable way is to have it in mozilla-config.h.
Attachment #657361 - Attachment is obsolete: true
Attachment #657361 - Flags: review?(joe)
Attachment #657419 - Flags: review?(ted.mielczarek)
Whoops, qrefreshed into the wrong patch.
Attachment #657419 - Attachment is obsolete: true
Attachment #657419 - Flags: review?(ted.mielczarek)
Attachment #657423 - Flags: review?(ted.mielczarek)
Comment on attachment 657423 [details] [diff] [review]
define SKIA_DLL in mozilla-config.h

Review of attachment 657423 [details] [diff] [review]:
-----------------------------------------------------------------

::: configure.in
@@ +7710,5 @@
>  MOZ_ENABLE_SKIA=1,
>  MOZ_ENABLE_SKIA=)
>  
> +if test "$MOZ_ENABLE_SKIA"; then
> +    AC_DEFINE(SKIA_DLL)

That's going to export the symbols on mac and linux, isn't it?
It'll make the Skia classes have this attribute:

        #define SK_API __attribute__((visibility("default")))

Is that a problem?
It might increase dlopen times for libxul, I guess?
Comment on attachment 657423 [details] [diff] [review]
define SKIA_DLL in mozilla-config.h

Review of attachment 657423 [details] [diff] [review]:
-----------------------------------------------------------------

Yeah, I don't think you want to do that. We should do this on Windows only.
Attachment #657423 - Flags: review?(ted.mielczarek) → review-
This isn't necessary after all.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: