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

Side by Side Diff: Source/modules/webaudio/AudioContext.h

Issue 106423003: [oilpan] Rename visit to mark. (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Address comments. Created 7 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 unified diff | Download patch | Annotate | Revision Log
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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 // Create an AudioContext for rendering to the audio hardware. 79 // Create an AudioContext for rendering to the audio hardware.
80 static PassRefPtr<AudioContext> create(Document*, ExceptionCode&); 80 static PassRefPtr<AudioContext> create(Document*, ExceptionCode&);
81 81
82 // Create an AudioContext for offline (non-realtime) rendering. 82 // Create an AudioContext for offline (non-realtime) rendering.
83 static PassRefPtr<AudioContext> createOfflineContext(Document*, unsigned num berOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&); 83 static PassRefPtr<AudioContext> createOfflineContext(Document*, unsigned num berOfChannels, size_t numberOfFrames, float sampleRate, ExceptionCode&);
84 84
85 virtual ~AudioContext(); 85 virtual ~AudioContext();
86 86
87 virtual void trace(Visitor*) { } 87 virtual void trace(Visitor*) { }
88 88
89 virtual void visitWith(Visitor* visitor) const OVERRIDE 89 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE
90 { 90 {
91 visitor->visit(this); 91 visitor->mark(this);
92 } 92 }
93 93
94 bool isInitialized() const; 94 bool isInitialized() const;
95 95
96 bool isOfflineContext() { return m_isOfflineContext; } 96 bool isOfflineContext() { return m_isOfflineContext; }
97 97
98 // Returns true when initialize() was called AND all asynchronous initializa tion has completed. 98 // Returns true when initialize() was called AND all asynchronous initializa tion has completed.
99 bool isRunnable() const; 99 bool isRunnable() const;
100 100
101 // Document notification 101 // Document notification
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 // It is somewhat arbitrary and could be increased if necessary. 353 // It is somewhat arbitrary and could be increased if necessary.
354 enum { MaxNumberOfChannels = 32 }; 354 enum { MaxNumberOfChannels = 32 };
355 355
356 // Number of AudioBufferSourceNodes that are active (playing). 356 // Number of AudioBufferSourceNodes that are active (playing).
357 int m_activeSourceCount; 357 int m_activeSourceCount;
358 }; 358 };
359 359
360 } // WebCore 360 } // WebCore
361 361
362 #endif // AudioContext_h 362 #endif // AudioContext_h
OLDNEW
« no previous file with comments | « Source/modules/speech/SpeechSynthesisUtterance.h ('k') | Source/modules/webaudio/OfflineAudioContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698