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

Side by Side Diff: media/renderers/video_renderer_impl.h

Issue 1409123005: Add methods for telling V8 how much memory audio/video is using. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix html viewer. Created 5 years, 1 month 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 | « media/renderers/audio_renderer_impl_unittest.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 6 #define MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 // Indicates whether or not media time is currently progressing or not. Must 249 // Indicates whether or not media time is currently progressing or not. Must
250 // only be accessed from |task_runner_|. 250 // only be accessed from |task_runner_|.
251 bool time_progressing_; 251 bool time_progressing_;
252 252
253 // Indicates that Render() should only render the first frame and then request 253 // Indicates that Render() should only render the first frame and then request
254 // that the sink be stopped. |posted_maybe_stop_after_first_paint_| is used 254 // that the sink be stopped. |posted_maybe_stop_after_first_paint_| is used
255 // to avoid repeated task posts. 255 // to avoid repeated task posts.
256 bool render_first_frame_and_stop_; 256 bool render_first_frame_and_stop_;
257 bool posted_maybe_stop_after_first_paint_; 257 bool posted_maybe_stop_after_first_paint_;
258 258
259 // Memory usage of |algorithm_| recorded during the last UpdateStats_Locked()
260 // call.
261 int64_t last_video_memory_usage_;
262
259 // NOTE: Weak pointers must be invalidated before all other member variables. 263 // NOTE: Weak pointers must be invalidated before all other member variables.
260 base::WeakPtrFactory<VideoRendererImpl> weak_factory_; 264 base::WeakPtrFactory<VideoRendererImpl> weak_factory_;
261 265
262 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl); 266 DISALLOW_COPY_AND_ASSIGN(VideoRendererImpl);
263 }; 267 };
264 268
265 } // namespace media 269 } // namespace media
266 270
267 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_ 271 #endif // MEDIA_RENDERERS_VIDEO_RENDERER_IMPL_H_
OLDNEW
« no previous file with comments | « media/renderers/audio_renderer_impl_unittest.cc ('k') | media/renderers/video_renderer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698