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

Side by Side Diff: content/common/gpu/media/video_decode_accelerator_unittest.cc

Issue 10837118: Dead code elimination: scythe.chrome_functions:segment.path %media% edition, round 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // The bulk of this file is support code; sorry about that. Here's an overview 5 // The bulk of this file is support code; sorry about that. Here's an overview
6 // to hopefully help readers of this code: 6 // to hopefully help readers of this code:
7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or 7 // - RenderingHelper is charged with interacting with X11/{EGL/GLES2,GLX/GL} or
8 // Win/EGL. 8 // Win/EGL.
9 // - ClientState is an enum for the state of the decode client used by the test. 9 // - ClientState is an enum for the state of the decode client used by the test.
10 // - ClientStateNotification is a barrier abstraction that allows the test code 10 // - ClientStateNotification is a barrier abstraction that allows the test code
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 virtual void DismissPictureBuffer(int32 picture_buffer_id); 218 virtual void DismissPictureBuffer(int32 picture_buffer_id);
219 virtual void PictureReady(const media::Picture& picture); 219 virtual void PictureReady(const media::Picture& picture);
220 // Simple state changes. 220 // Simple state changes.
221 virtual void NotifyInitializeDone(); 221 virtual void NotifyInitializeDone();
222 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id); 222 virtual void NotifyEndOfBitstreamBuffer(int32 bitstream_buffer_id);
223 virtual void NotifyFlushDone(); 223 virtual void NotifyFlushDone();
224 virtual void NotifyResetDone(); 224 virtual void NotifyResetDone();
225 virtual void NotifyError(VideoDecodeAccelerator::Error error); 225 virtual void NotifyError(VideoDecodeAccelerator::Error error);
226 226
227 // Simple getters for inspecting the state of the Client. 227 // Simple getters for inspecting the state of the Client.
228 ClientState state() { return state_; }
229 int num_done_bitstream_buffers() { return num_done_bitstream_buffers_; } 228 int num_done_bitstream_buffers() { return num_done_bitstream_buffers_; }
230 int num_decoded_frames() { return num_decoded_frames_; } 229 int num_decoded_frames() { return num_decoded_frames_; }
231 double frames_per_second(); 230 double frames_per_second();
232 bool decoder_deleted() { return !decoder_.get(); } 231 bool decoder_deleted() { return !decoder_.get(); }
233 232
234 private: 233 private:
235 typedef std::map<int, media::PictureBuffer*> PictureBufferById; 234 typedef std::map<int, media::PictureBuffer*> PictureBufferById;
236 235
237 void SetState(ClientState new_state); 236 void SetState(ClientState new_state);
238 237
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
890 #if defined(OS_WIN) 889 #if defined(OS_WIN)
891 DXVAVideoDecodeAccelerator::PreSandboxInitialization(); 890 DXVAVideoDecodeAccelerator::PreSandboxInitialization();
892 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL) 891 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)
893 OmxVideoDecodeAccelerator::PreSandboxInitialization(); 892 OmxVideoDecodeAccelerator::PreSandboxInitialization();
894 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY) 893 #elif defined(OS_CHROMEOS) && defined(ARCH_CPU_X86_FAMILY)
895 VaapiVideoDecodeAccelerator::PreSandboxInitialization(); 894 VaapiVideoDecodeAccelerator::PreSandboxInitialization();
896 #endif 895 #endif
897 896
898 return RUN_ALL_TESTS(); 897 return RUN_ALL_TESTS();
899 } 898 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698