| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 532 | 532 |
| 533 bool SourceBuffer::isRemoved() const | 533 bool SourceBuffer::isRemoved() const |
| 534 { | 534 { |
| 535 return !m_source; | 535 return !m_source; |
| 536 } | 536 } |
| 537 | 537 |
| 538 void SourceBuffer::scheduleEvent(const AtomicString& eventName) | 538 void SourceBuffer::scheduleEvent(const AtomicString& eventName) |
| 539 { | 539 { |
| 540 ASSERT(m_asyncEventQueue); | 540 ASSERT(m_asyncEventQueue); |
| 541 | 541 |
| 542 RefPtrWillBeRawPtr<Event> event = Event::create(eventName); | 542 RawPtr<Event> event = Event::create(eventName); |
| 543 event->setTarget(this); | 543 event->setTarget(this); |
| 544 | 544 |
| 545 m_asyncEventQueue->enqueueEvent(event.release()); | 545 m_asyncEventQueue->enqueueEvent(event.release()); |
| 546 } | 546 } |
| 547 | 547 |
| 548 bool SourceBuffer::prepareAppend(size_t newDataSize, ExceptionState& exceptionSt
ate) | 548 bool SourceBuffer::prepareAppend(size_t newDataSize, ExceptionState& exceptionSt
ate) |
| 549 { | 549 { |
| 550 TRACE_EVENT_ASYNC_BEGIN0("media", "SourceBuffer::prepareAppend", this); | 550 TRACE_EVENT_ASYNC_BEGIN0("media", "SourceBuffer::prepareAppend", this); |
| 551 // http://w3c.github.io/media-source/#sourcebuffer-prepare-append | 551 // http://w3c.github.io/media-source/#sourcebuffer-prepare-append |
| 552 // 3.5.4 Prepare Append Algorithm | 552 // 3.5.4 Prepare Append Algorithm |
| (...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 870 visitor->trace(m_asyncEventQueue); | 870 visitor->trace(m_asyncEventQueue); |
| 871 visitor->trace(m_appendBufferAsyncPartRunner); | 871 visitor->trace(m_appendBufferAsyncPartRunner); |
| 872 visitor->trace(m_removeAsyncPartRunner); | 872 visitor->trace(m_removeAsyncPartRunner); |
| 873 visitor->trace(m_appendStreamAsyncPartRunner); | 873 visitor->trace(m_appendStreamAsyncPartRunner); |
| 874 visitor->trace(m_stream); | 874 visitor->trace(m_stream); |
| 875 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); | 875 RefCountedGarbageCollectedEventTargetWithInlineData<SourceBuffer>::trace(vis
itor); |
| 876 ActiveDOMObject::trace(visitor); | 876 ActiveDOMObject::trace(visitor); |
| 877 } | 877 } |
| 878 | 878 |
| 879 } // namespace blink | 879 } // namespace blink |
| OLD | NEW |