@@ -99,6 +99,11 @@ skia_library_configs = [
99
99
" :skia_library" ,
100
100
]
101
101
102
+ config (" our_vulkan_headers" ) {
103
+ include_dirs = [ " include/third_party/vulkan" ]
104
+ defines = [ " SK_USE_INTERNAL_VULKAN_HEADERS" ]
105
+ }
106
+
102
107
# Use for CPU-specific Skia code that needs particular compiler flags.
103
108
template (" opts" ) {
104
109
if (invoker .enabled ) {
@@ -351,6 +356,7 @@ optional("fontmgr_win") {
351
356
optional (" gpu_shared" ) {
352
357
enabled = skia_enable_ganesh
353
358
359
+ configs = []
354
360
deps = []
355
361
libs = []
356
362
public_defines = []
@@ -364,6 +370,7 @@ optional("gpu_shared") {
364
370
if (skia_use_vulkan ) {
365
371
public_defines += [ " SK_VULKAN" ]
366
372
sources += skia_shared_vk_sources
373
+ configs += [ " :our_vulkan_headers" ]
367
374
if (skia_enable_vulkan_debug_layers ) {
368
375
public_defines += [ " SK_ENABLE_VK_LAYERS" ]
369
376
}
@@ -380,6 +387,8 @@ optional("gpu_shared") {
380
387
381
388
optional (" gpu" ) {
382
389
enabled = skia_enable_ganesh
390
+
391
+ configs = []
383
392
deps = [ " :gpu_shared" ]
384
393
public_defines = []
385
394
public_configs = []
@@ -431,10 +440,9 @@ optional("gpu") {
431
440
} else if (is_win ) {
432
441
sources += [
433
442
" $_skia_root /src/gpu/ganesh/gl/win/GrGLMakeNativeInterface_win.cpp" ,
443
+ " $_skia_root /src/gpu/ganesh/gl/win/GrGLMakeWinInterface.cpp" ,
434
444
]
435
- if (target_cpu != " arm64" ) {
436
- libs += [ " OpenGL32.lib" ]
437
- }
445
+ libs += [ " OpenGL32.lib" ]
438
446
} else {
439
447
sources +=
440
448
[ " $_skia_root /src/gpu/ganesh/gl/GrGLMakeNativeInterface_none.cpp" ]
@@ -446,6 +454,7 @@ optional("gpu") {
446
454
if (skia_use_vulkan ) {
447
455
public += skia_gpu_vk_public
448
456
sources += skia_gpu_vk_private
457
+ configs += [ " :our_vulkan_headers" ]
449
458
if (is_fuchsia ) {
450
459
public_deps += [ " ${ fuchsia_sdk } /pkg/vulkan" ]
451
460
}
@@ -528,10 +537,8 @@ optional("png_decode") {
528
537
]
529
538
530
539
deps = [ " //flutter/third_party/libpng" ]
531
- sources = [
532
- " $_skia_root /src/codec/SkIcoCodec.cpp" ,
533
- " $_skia_root /src/codec/SkPngCodec.cpp" ,
534
- ]
540
+ sources = [ " $_skia_root /src/codec/SkIcoCodec.cpp" ]
541
+ sources += skia_codec_png
535
542
}
536
543
537
544
optional (" png_encode" ) {
0 commit comments