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

Side by Side Diff: media/filters/test_video_renderer.h

Issue 42635: Lots of files touched for a very simple change. Everywhere we used a const M... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « media/filters/test_video_decoder.h ('k') | media/filters/video_renderer_base.h » ('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 (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 // 4 //
5 // Simple test class used by unit tests. Tests create the filter on the test's 5 // Simple test class used by unit tests. Tests create the filter on the test's
6 // thread and then use InstanceFilterFactory to force the test's instance to 6 // thread and then use InstanceFilterFactory to force the test's instance to
7 // be returned to the pipeline. 7 // be returned to the pipeline.
8 8
9 #ifndef MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_ 9 #ifndef MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_
10 #define MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_ 10 #define MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_
(...skipping 28 matching lines...) Expand all
39 last_frame_ = frame; 39 last_frame_ = frame;
40 last_timestamp_ = frame->GetTimestamp(); 40 last_timestamp_ = frame->GetTimestamp();
41 } 41 }
42 } 42 }
43 } 43 }
44 44
45 size_t unique_frames() { return unique_frames_; } 45 size_t unique_frames() { return unique_frames_; }
46 size_t paint_called() { return paint_called_; } 46 size_t paint_called() { return paint_called_; }
47 base::TimeDelta last_timestamp() { return last_timestamp_; } 47 base::TimeDelta last_timestamp() { return last_timestamp_; }
48 48
49 static bool IsMediaFormatSupported(const MediaFormat* format) { 49 static bool IsMediaFormatSupported(const MediaFormat& format) {
50 return VideoRendererBase::IsMediaFormatSupported(format); 50 return VideoRendererBase::IsMediaFormatSupported(format);
51 } 51 }
52 52
53 private: 53 private:
54 friend class scoped_refptr<TestVideoRenderer>; 54 friend class scoped_refptr<TestVideoRenderer>;
55 virtual ~TestVideoRenderer() {} 55 virtual ~TestVideoRenderer() {}
56 56
57 VideoFrame* last_frame_; 57 VideoFrame* last_frame_;
58 size_t paint_called_; 58 size_t paint_called_;
59 size_t unique_frames_; 59 size_t unique_frames_;
60 base::TimeDelta last_timestamp_; 60 base::TimeDelta last_timestamp_;
61 61
62 DISALLOW_COPY_AND_ASSIGN(TestVideoRenderer); 62 DISALLOW_COPY_AND_ASSIGN(TestVideoRenderer);
63 }; 63 };
64 64
65 } // namespace 65 } // namespace
66 66
67 #endif // MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_ 67 #endif // MEDIA_FILTERS_TEST_VIDEO_RENDERER_H_
OLDNEW
« no previous file with comments | « media/filters/test_video_decoder.h ('k') | media/filters/video_renderer_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698