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

Side by Side Diff: Source/platform/audio/HRTFDatabaseLoader.cpp

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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 | « Source/platform/audio/HRTFDatabase.h ('k') | Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google 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 21 matching lines...) Expand all
32 32
33 #include "platform/audio/HRTFDatabaseLoader.h" 33 #include "platform/audio/HRTFDatabaseLoader.h"
34 34
35 #include "platform/Task.h" 35 #include "platform/Task.h"
36 #include "platform/TaskSynchronizer.h" 36 #include "platform/TaskSynchronizer.h"
37 #include "public/platform/Platform.h" 37 #include "public/platform/Platform.h"
38 #include "wtf/MainThread.h" 38 #include "wtf/MainThread.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 typedef HeapHashMap<double, WeakMember<HRTFDatabaseLoader> > LoaderMap; 42 typedef HeapHashMap<double, WeakMember<HRTFDatabaseLoader>> LoaderMap;
43 43
44 static LoaderMap& loaderMap() 44 static LoaderMap& loaderMap()
45 { 45 {
46 DEFINE_STATIC_LOCAL(Persistent<LoaderMap>, map, (new LoaderMap)); 46 DEFINE_STATIC_LOCAL(Persistent<LoaderMap>, map, (new LoaderMap));
47 return *map; 47 return *map;
48 } 48 }
49 49
50 HRTFDatabaseLoader* HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(f loat sampleRate) 50 HRTFDatabaseLoader* HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(f loat sampleRate)
51 { 51 {
52 ASSERT(isMainThread()); 52 ASSERT(isMainThread());
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 123
124 TaskSynchronizer sync; 124 TaskSynchronizer sync;
125 m_thread->postTask(new Task(WTF::bind(&HRTFDatabaseLoader::cleanupTask, this , &sync))); 125 m_thread->postTask(new Task(WTF::bind(&HRTFDatabaseLoader::cleanupTask, this , &sync)));
126 sync.waitForTaskCompletion(); 126 sync.waitForTaskCompletion();
127 m_thread.clear(); 127 m_thread.clear();
128 } 128 }
129 129
130 } // namespace blink 130 } // namespace blink
131 131
132 #endif // ENABLE(WEB_AUDIO) 132 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/platform/audio/HRTFDatabase.h ('k') | Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698