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

Side by Side Diff: Source/modules/mediasource/SourceBuffer.h

Issue 785343002: Added function to implement Coded Frame Eviction Algorithm (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 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
« no previous file with comments | « no previous file | Source/modules/mediasource/SourceBuffer.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) 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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 107
108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); 108 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&);
109 void appendBufferAsyncPart(); 109 void appendBufferAsyncPart();
110 110
111 void removeAsyncPart(); 111 void removeAsyncPart();
112 112
113 void appendStreamInternal(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&); 113 void appendStreamInternal(PassRefPtrWillBeRawPtr<Stream>, ExceptionState&);
114 void appendStreamAsyncPart(); 114 void appendStreamAsyncPart();
115 void appendStreamDone(bool success); 115 void appendStreamDone(bool success);
116 void clearAppendStreamState(); 116 void clearAppendStreamState();
117 void appendError();
118
119 bool evictCodedFrames();
117 120
118 // FileReaderLoaderClient interface 121 // FileReaderLoaderClient interface
119 virtual void didStartLoading() override; 122 virtual void didStartLoading() override;
120 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) override; 123 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) override;
121 virtual void didFinishLoading() override; 124 virtual void didFinishLoading() override;
122 virtual void didFail(FileError::ErrorCode) override; 125 virtual void didFail(FileError::ErrorCode) override;
123 126
124 OwnPtr<WebSourceBuffer> m_webSourceBuffer; 127 OwnPtr<WebSourceBuffer> m_webSourceBuffer;
125 Member<MediaSource> m_source; 128 Member<MediaSource> m_source;
126 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue; 129 RawPtrWillBeMember<GenericEventQueue> m_asyncEventQueue;
(...skipping 16 matching lines...) Expand all
143 bool m_streamMaxSizeValid; 146 bool m_streamMaxSizeValid;
144 unsigned long long m_streamMaxSize; 147 unsigned long long m_streamMaxSize;
145 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; 148 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner;
146 RefPtrWillBeMember<Stream> m_stream; 149 RefPtrWillBeMember<Stream> m_stream;
147 OwnPtr<FileReaderLoader> m_loader; 150 OwnPtr<FileReaderLoader> m_loader;
148 }; 151 };
149 152
150 } // namespace blink 153 } // namespace blink
151 154
152 #endif // SourceBuffer_h 155 #endif // SourceBuffer_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/mediasource/SourceBuffer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698