Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: skia/BUILD.gn

Issue 2565323003: Move gif image decoder to SkCodec (Closed)
Patch Set: Fill image with alpha after an error is encountered Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import("//build/config/features.gni") 5 import("//build/config/features.gni")
6 import("//build/config/freetype/freetype.gni") 6 import("//build/config/freetype/freetype.gni")
7 import("//build/config/ui.gni") 7 import("//build/config/ui.gni")
8 import("//build/config/sanitizers/sanitizers.gni") 8 import("//build/config/sanitizers/sanitizers.gni")
9 import("//printing/features/features.gni") 9 import("//printing/features/features.gni")
10 import("//testing/test.gni") 10 import("//testing/test.gni")
(...skipping 26 matching lines...) Expand all
37 "//third_party/skia/include/images", 37 "//third_party/skia/include/images",
38 "//third_party/skia/include/lazy", 38 "//third_party/skia/include/lazy",
39 "//third_party/skia/include/pathops", 39 "//third_party/skia/include/pathops",
40 "//third_party/skia/include/pdf", 40 "//third_party/skia/include/pdf",
41 "//third_party/skia/include/pipe", 41 "//third_party/skia/include/pipe",
42 "//third_party/skia/include/ports", 42 "//third_party/skia/include/ports",
43 "//third_party/skia/include/utils", 43 "//third_party/skia/include/utils",
44 "//third_party/skia/third_party/vulkan", 44 "//third_party/skia/third_party/vulkan",
45 ] 45 ]
46 46
47 if (!is_ios) {
48 include_dirs += [ "//third_party/skia/include/codec" ]
49 }
50
47 defines = skia_for_chromium_defines 51 defines = skia_for_chromium_defines
48 defines += [ 52 defines += [
49 "SK_HAS_PNG_LIBRARY", 53 "SK_HAS_PNG_LIBRARY",
50 "SK_HAS_WEBP_LIBRARY", 54 "SK_HAS_WEBP_LIBRARY",
51 ] 55 ]
52 56
53 if (!is_ios) { 57 if (!is_ios) {
54 defines += [ "SK_HAS_JPEG_LIBRARY" ] 58 defines += [ "SK_HAS_JPEG_LIBRARY" ]
55 } 59 }
56 60
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 "//third_party/skia/src/image", 108 "//third_party/skia/src/image",
105 "//third_party/skia/src/images", 109 "//third_party/skia/src/images",
106 "//third_party/skia/src/opts", 110 "//third_party/skia/src/opts",
107 "//third_party/skia/src/pdf", 111 "//third_party/skia/src/pdf",
108 "//third_party/skia/src/ports", 112 "//third_party/skia/src/ports",
109 "//third_party/skia/src/shaders", 113 "//third_party/skia/src/shaders",
110 "//third_party/skia/src/shaders/gradients", 114 "//third_party/skia/src/shaders/gradients",
111 "//third_party/skia/src/sfnt", 115 "//third_party/skia/src/sfnt",
112 "//third_party/skia/src/utils", 116 "//third_party/skia/src/utils",
113 "//third_party/skia/src/lazy", 117 "//third_party/skia/src/lazy",
118 "//third_party/skia/third_party/gif",
114 ] 119 ]
115 if (is_mac || is_ios) { 120 if (is_mac || is_ios) {
116 include_dirs += [ "//third_party/skia/include/utils/mac" ] 121 include_dirs += [ "//third_party/skia/include/utils/mac" ]
117 } 122 }
118 if (is_mac) { 123 if (is_mac) {
119 include_dirs += [ "//third_party/skia/include/utils/ios" ] 124 include_dirs += [ "//third_party/skia/include/utils/ios" ]
120 } 125 }
121 126
122 # TODO: remove after Skia shader relocation (https://skia-review.googlesource. com/c/17927) 127 # TODO: remove after Skia shader relocation (https://skia-review.googlesource. com/c/17927)
123 include_dirs += [ "//third_party/skia/src/effects/gradients" ] 128 include_dirs += [ "//third_party/skia/src/effects/gradients" ]
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp", 284 "//third_party/skia/src/images/SkJPEGWriteUtility.cpp",
280 "//third_party/skia/src/images/SkJpegEncoder.cpp", 285 "//third_party/skia/src/images/SkJpegEncoder.cpp",
281 "//third_party/skia/src/images/SkPngEncoder.cpp", 286 "//third_party/skia/src/images/SkPngEncoder.cpp",
282 "//third_party/skia/src/images/SkWebpEncoder.cpp", 287 "//third_party/skia/src/images/SkWebpEncoder.cpp",
283 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp", 288 "//third_party/skia/src/ports/SkGlobalInitialization_default.cpp",
284 "//third_party/skia/src/ports/SkImageGenerator_none.cpp", 289 "//third_party/skia/src/ports/SkImageGenerator_none.cpp",
285 "//third_party/skia/src/ports/SkOSFile_stdio.cpp", 290 "//third_party/skia/src/ports/SkOSFile_stdio.cpp",
286 "//third_party/skia/src/sfnt/SkOTTable_name.cpp", 291 "//third_party/skia/src/sfnt/SkOTTable_name.cpp",
287 "//third_party/skia/src/sfnt/SkOTUtils.cpp", 292 "//third_party/skia/src/sfnt/SkOTUtils.cpp",
288 ] 293 ]
294 if (!is_ios) {
295 sources += [
296 "//third_party/skia/src/codec/SkBmpBaseCodec.cpp",
297 "//third_party/skia/src/codec/SkBmpCodec.cpp",
298 "//third_party/skia/src/codec/SkBmpMaskCodec.cpp",
299 "//third_party/skia/src/codec/SkBmpRLECodec.cpp",
300 "//third_party/skia/src/codec/SkBmpStandardCodec.cpp",
301 "//third_party/skia/src/codec/SkCodec.cpp",
302 "//third_party/skia/src/codec/SkGifCodec.cpp",
303 "//third_party/skia/src/codec/SkIcoCodec.cpp",
304 "//third_party/skia/src/codec/SkJpegCodec.cpp",
305 "//third_party/skia/src/codec/SkJpegDecoderMgr.cpp",
306 "//third_party/skia/src/codec/SkJpegUtility.cpp",
307 "//third_party/skia/src/codec/SkMaskSwizzler.cpp",
308 "//third_party/skia/src/codec/SkMasks.cpp",
309 "//third_party/skia/src/codec/SkPngCodec.cpp",
310 "//third_party/skia/src/codec/SkSampler.cpp",
311 "//third_party/skia/src/codec/SkStreamBuffer.cpp",
312 "//third_party/skia/src/codec/SkSwizzler.cpp",
313 "//third_party/skia/src/codec/SkWbmpCodec.cpp",
314 "//third_party/skia/src/codec/SkWebpCodec.cpp",
315 "//third_party/skia/third_party/gif/SkGifImageReader.cpp",
316 ]
317 }
289 318
290 # This and skia_opts are really the same conceptual target so share headers. 319 # This and skia_opts are really the same conceptual target so share headers.
291 allow_circular_includes_from = [ ":skia_opts" ] 320 allow_circular_includes_from = [ ":skia_opts" ]
292 321
293 if (current_cpu == "arm") { 322 if (current_cpu == "arm") {
294 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ] 323 sources += [ "//third_party/skia/src/core/SkUtilsArm.cpp" ]
295 } 324 }
296 325
297 # GPU 326 # GPU
298 if (skia_support_gpu) { 327 if (skia_support_gpu) {
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 773
745 deps = [ 774 deps = [
746 ":skia", 775 ":skia",
747 "//base", 776 "//base",
748 "//base/test:test_support", 777 "//base/test:test_support",
749 "//build/config:exe_and_shlib_deps", 778 "//build/config:exe_and_shlib_deps",
750 "//build/win:default_exe_manifest", 779 "//build/win:default_exe_manifest",
751 ] 780 ]
752 } 781 }
753 } 782 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698