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

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

Issue 9307114: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Build fix. Created 8 years, 10 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 | « chrome/browser/sessions/session_types.cc ('k') | net/http/http_response_body_drainer.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 (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 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" 5 #include "content/common/gpu/media/dxva_video_decode_accelerator.h"
6 6
7 #if !defined(OS_WIN) 7 #if !defined(OS_WIN)
8 #error This file should only be built on Windows. 8 #error This file should only be built on Windows.
9 #endif // !defined(OS_WIN) 9 #endif // !defined(OS_WIN)
10 10
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 242
243 DXVAVideoDecodeAccelerator::DXVAVideoDecodeAccelerator( 243 DXVAVideoDecodeAccelerator::DXVAVideoDecodeAccelerator(
244 media::VideoDecodeAccelerator::Client* client, 244 media::VideoDecodeAccelerator::Client* client,
245 base::ProcessHandle renderer_process) 245 base::ProcessHandle renderer_process)
246 : client_(client), 246 : client_(client),
247 state_(kUninitialized), 247 state_(kUninitialized),
248 pictures_requested_(false), 248 pictures_requested_(false),
249 renderer_process_(renderer_process), 249 renderer_process_(renderer_process),
250 last_input_buffer_id_(-1), 250 last_input_buffer_id_(-1),
251 inputs_before_decode_(0) { 251 inputs_before_decode_(0) {
252 memset(&input_stream_info_, 0, sizeof(input_stream_info_));
253 memset(&output_stream_info_, 0, sizeof(output_stream_info_));
252 } 254 }
253 255
254 DXVAVideoDecodeAccelerator::~DXVAVideoDecodeAccelerator() { 256 DXVAVideoDecodeAccelerator::~DXVAVideoDecodeAccelerator() {
255 client_ = NULL; 257 client_ = NULL;
256 } 258 }
257 259
258 bool DXVAVideoDecodeAccelerator::Initialize(Profile) { 260 bool DXVAVideoDecodeAccelerator::Initialize(Profile) {
259 DCHECK(CalledOnValidThread()); 261 DCHECK(CalledOnValidThread());
260 262
261 RETURN_AND_NOTIFY_ON_FAILURE(pre_sandbox_init_done_, 263 RETURN_AND_NOTIFY_ON_FAILURE(pre_sandbox_init_done_,
(...skipping 579 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 } 843 }
842 } 844 }
843 845
844 void DXVAVideoDecodeAccelerator::NotifyPictureReady( 846 void DXVAVideoDecodeAccelerator::NotifyPictureReady(
845 const media::Picture& picture) { 847 const media::Picture& picture) {
846 // This task could execute after the decoder has been torn down. 848 // This task could execute after the decoder has been torn down.
847 if (state_ != kUninitialized && client_) 849 if (state_ != kUninitialized && client_)
848 client_->PictureReady(picture); 850 client_->PictureReady(picture);
849 } 851 }
850 852
OLDNEW
« no previous file with comments | « chrome/browser/sessions/session_types.cc ('k') | net/http/http_response_body_drainer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698