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

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

Issue 1013923002: Fix MSE GC, make it less aggressive, more spec-compliant (Blink CL) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Added a basic test for evict frames functionality Created 5 years, 6 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) 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 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 114
115 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&); 115 void appendBufferInternal(const unsigned char*, unsigned, ExceptionState&);
116 void appendBufferAsyncPart(); 116 void appendBufferAsyncPart();
117 117
118 void removeAsyncPart(); 118 void removeAsyncPart();
119 119
120 void appendStreamInternal(Stream*, ExceptionState&); 120 void appendStreamInternal(Stream*, ExceptionState&);
121 void appendStreamAsyncPart(); 121 void appendStreamAsyncPart();
122 void appendStreamDone(bool success); 122 void appendStreamDone(bool success);
123 void clearAppendStreamState(); 123 void clearAppendStreamState();
124 void appendError();
125
126 bool evictCodedFrames();
124 127
125 // FileReaderLoaderClient interface 128 // FileReaderLoaderClient interface
126 virtual void didStartLoading() override; 129 virtual void didStartLoading() override;
127 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) override; 130 virtual void didReceiveDataForClient(const char* data, unsigned dataLength) override;
128 virtual void didFinishLoading() override; 131 virtual void didFinishLoading() override;
129 virtual void didFail(FileError::ErrorCode) override; 132 virtual void didFail(FileError::ErrorCode) override;
130 133
131 OwnPtr<WebSourceBuffer> m_webSourceBuffer; 134 OwnPtr<WebSourceBuffer> m_webSourceBuffer;
132 Member<MediaSource> m_source; 135 Member<MediaSource> m_source;
133 Member<TrackDefaultList> m_trackDefaults; 136 Member<TrackDefaultList> m_trackDefaults;
(...skipping 17 matching lines...) Expand all
151 bool m_streamMaxSizeValid; 154 bool m_streamMaxSizeValid;
152 unsigned long long m_streamMaxSize; 155 unsigned long long m_streamMaxSize;
153 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner; 156 AsyncMethodRunner<SourceBuffer> m_appendStreamAsyncPartRunner;
154 Member<Stream> m_stream; 157 Member<Stream> m_stream;
155 OwnPtr<FileReaderLoader> m_loader; 158 OwnPtr<FileReaderLoader> m_loader;
156 }; 159 };
157 160
158 } // namespace blink 161 } // namespace blink
159 162
160 #endif // SourceBuffer_h 163 #endif // SourceBuffer_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698