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

Side by Side Diff: media/gpu/dxva_video_decode_accelerator_win.h

Issue 2590723002: [dxvavda] Save information about outstanding buffers in hang minidumps. (Closed)
Patch Set: Created 3 years, 12 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
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.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 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 5 #ifndef MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 6 #define MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
7 7
8 #include <d3d11.h> 8 #include <d3d11.h>
9 #include <d3d9.h> 9 #include <d3d9.h>
10 #include <initguid.h> 10 #include <initguid.h>
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 456
457 // Counter which holds the number of input packets before a successful 457 // Counter which holds the number of input packets before a successful
458 // decode. 458 // decode.
459 int inputs_before_decode_; 459 int inputs_before_decode_;
460 460
461 // Set to true when the drain message is sent to the decoder during a flush 461 // Set to true when the drain message is sent to the decoder during a flush
462 // operation. Used to ensure the message is only sent once after 462 // operation. Used to ensure the message is only sent once after
463 // |pending_input_buffers_| is drained. Protected by |decoder_lock_|. 463 // |pending_input_buffers_| is drained. Protected by |decoder_lock_|.
464 bool sent_drain_message_; 464 bool sent_drain_message_;
465 465
466 // This is the array size of the D3D11 texture that's output to by the
467 // decoder. It's only used for debugging.
468 uint32_t output_array_size_ = 0;
469
466 // List of input samples waiting to be processed. 470 // List of input samples waiting to be processed.
467 typedef std::list<base::win::ScopedComPtr<IMFSample>> PendingInputs; 471 typedef std::list<base::win::ScopedComPtr<IMFSample>> PendingInputs;
468 PendingInputs pending_input_buffers_; 472 PendingInputs pending_input_buffers_;
469 473
470 // Callback to get current GLContext. 474 // Callback to get current GLContext.
471 GetGLContextCallback get_gl_context_cb_; 475 GetGLContextCallback get_gl_context_cb_;
472 // Callback to set the correct gl context. 476 // Callback to set the correct gl context.
473 MakeGLContextCurrentCallback make_context_current_cb_; 477 MakeGLContextCurrentCallback make_context_current_cb_;
474 BindGLImageCallback bind_image_cb_; 478 BindGLImageCallback bind_image_cb_;
475 479
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
553 557
554 // Function pointer for the MFCreateDXGIDeviceManager API. 558 // Function pointer for the MFCreateDXGIDeviceManager API.
555 static CreateDXGIDeviceManager create_dxgi_device_manager_; 559 static CreateDXGIDeviceManager create_dxgi_device_manager_;
556 560
557 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator); 561 DISALLOW_COPY_AND_ASSIGN(DXVAVideoDecodeAccelerator);
558 }; 562 };
559 563
560 } // namespace media 564 } // namespace media
561 565
562 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_ 566 #endif // MEDIA_GPU_DXVA_VIDEO_DECODE_ACCELERATOR_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | media/gpu/dxva_video_decode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698