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

Side by Side Diff: third_party/libpng/BUILD.gn

Issue 2771903002: libpng: Optimize RGBA png_do_expand_palette
Patch Set: Correct potentially uninitialized loop variable Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/libpng/arm/arm_palette.c » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/chromecast_build.gni") 5 import("//build/config/chromecast_build.gni")
6 import("//build/config/arm.gni") 6 import("//build/config/arm.gni")
7 7
8 config("libpng_config") { 8 config("libpng_config") {
9 include_dirs = [ "." ] 9 include_dirs = [ "." ]
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 if (current_cpu == "x86" || current_cpu == "x64") { 66 if (current_cpu == "x86" || current_cpu == "x64") {
67 sources += [ 67 sources += [
68 "contrib/intel/filter_sse2_intrinsics.c", 68 "contrib/intel/filter_sse2_intrinsics.c",
69 "contrib/intel/intel_init.c", 69 "contrib/intel/intel_init.c",
70 ] 70 ]
71 defines += [ "PNG_INTEL_SSE_OPT=1" ] 71 defines += [ "PNG_INTEL_SSE_OPT=1" ]
72 } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) { 72 } else if ((current_cpu == "arm" || current_cpu == "arm64") && arm_use_neon) {
73 sources += [ 73 sources += [
74 "arm/arm_init.c", 74 "arm/arm_init.c",
75 "arm/arm_palette.c",
75 "arm/filter_neon_intrinsics.c", 76 "arm/filter_neon_intrinsics.c",
76 ] 77 ]
77 defines += [ 78 defines += [
78 "PNG_ARM_NEON_OPT=2", 79 "PNG_ARM_NEON_OPT=2",
79 "PNG_ARM_NEON_IMPLEMENTATION=1", 80 "PNG_ARM_NEON_IMPLEMENTATION=1",
80 ] 81 ]
81 } 82 }
82 83
83 configs -= [ "//build/config/compiler:chromium_code" ] 84 configs -= [ "//build/config/compiler:chromium_code" ]
84 configs += [ "//build/config/compiler:no_chromium_code" ] 85 configs += [ "//build/config/compiler:no_chromium_code" ]
(...skipping 22 matching lines...) Expand all
107 ":libpng_sources", 108 ":libpng_sources",
108 ] 109 ]
109 } 110 }
110 } else { 111 } else {
111 group("libpng") { 112 group("libpng") {
112 public_deps = [ 113 public_deps = [
113 ":libpng_sources", 114 ":libpng_sources",
114 ] 115 ]
115 } 116 }
116 } 117 }
OLDNEW
« no previous file with comments | « no previous file | third_party/libpng/arm/arm_palette.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698