Index: media/BUILD.gn |
diff --git a/media/BUILD.gn b/media/BUILD.gn |
index eafcc1ede40b9609e8f1764713bdcf61100c9bbe..68c1e5f2423061a5178fb82b87ee611cc29b4c15 100644 |
--- a/media/BUILD.gn |
+++ b/media/BUILD.gn |
@@ -207,8 +207,6 @@ component("media") { |
"filters/ivf_parser.h", |
"filters/jpeg_parser.cc", |
"filters/jpeg_parser.h", |
- "filters/source_buffer_platform.cc", |
- "filters/source_buffer_platform.h", |
"filters/source_buffer_range.cc", |
"filters/source_buffer_range.h", |
"filters/source_buffer_stream.cc", |
@@ -505,6 +503,18 @@ component("media") { |
] |
} |
+ if (use_low_memory_buffer) { |
+ sources += [ |
+ "filters/source_buffer_platform.h", |
+ "filters/source_buffer_platform_lowmem.cc", |
+ ] |
+ } else { |
+ sources += [ |
+ "filters/source_buffer_platform.cc", |
+ "filters/source_buffer_platform.h", |
+ ] |
+ } |
+ |
public_deps = [ |
"//media/base", |
"//media/audio", |