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

Side by Side Diff: third_party/WebKit/Source/platform/audio/DirectConvolver.cpp

Issue 2867693004: Snapshot of all changes to get jumbo in blink and content.
Patch Set: Rebased again 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 /* 1 /*
2 * Copyright (C) 2012 Intel Inc. All rights reserved. 2 * Copyright (C) 2012 Intel Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 // Non-optimized using actual while loop. 394 // Non-optimized using actual while loop.
395 CONVOLVE_ONE_SAMPLE; 395 CONVOLVE_ONE_SAMPLE;
396 } 396 }
397 } 397 }
398 dest_p[i++] = sum; 398 dest_p[i++] = sum;
399 } 399 }
400 #if defined(ARCH_CPU_X86_FAMILY) 400 #if defined(ARCH_CPU_X86_FAMILY)
401 } 401 }
402 #endif 402 #endif
403 #endif // OS_MACOSX 403 #endif // OS_MACOSX
404 #undef CONVOLVE_ONE_SAMPLE
404 405
405 // Copy 2nd half of input buffer to 1st half. 406 // Copy 2nd half of input buffer to 1st half.
406 memcpy(buffer_.Data(), input_p, sizeof(float) * frames_to_process); 407 memcpy(buffer_.Data(), input_p, sizeof(float) * frames_to_process);
407 } 408 }
408 409
409 void DirectConvolver::Reset() { 410 void DirectConvolver::Reset() {
410 buffer_.Zero(); 411 buffer_.Zero();
411 } 412 }
412 413
413 } // namespace blink 414 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/BUILD.gn ('k') | third_party/WebKit/Source/platform/audio/SincResampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698