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

Unified Diff: media/BUILD.gn

Issue 2556993002: Experiment with AVX optimizations for FMAC, FMUL operations.
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/base/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/BUILD.gn
diff --git a/media/BUILD.gn b/media/BUILD.gn
index 2d62c02ba673b121071d541e8281c47b0e852ead..8a6390bbfd80b8b320e14887986e23aaf9330675 100644
--- a/media/BUILD.gn
+++ b/media/BUILD.gn
@@ -848,11 +848,26 @@ component("shared_memory_support") {
":media_implementation",
]
deps = [
+ ":media_avx",
"//base",
"//ui/gfx/geometry",
]
}
+if (current_cpu == "x86" || current_cpu == "x64") {
+ source_set("media_avx") {
+ configs += [ "//media:media_implementation" ]
+ sources = [
+ "base/vector_math_avx.cc",
+ ]
+ if (is_win) {
+ cflags = [ "/arch:AVX" ]
+ } else {
+ cflags = [ "-mavx" ]
+ }
+ }
+}
+
# TODO(watk): Refactor tests that could be made to run on Android. See
# http://crbug.com/570762
if (media_use_ffmpeg && !is_android) {
« no previous file with comments | « no previous file | media/base/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698