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

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

Issue 2058113002: Add 'cbcs' encryption scheme support in Android media. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: change Android version probing Created 4 years, 2 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
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 "media/gpu/dxva_video_decode_accelerator_win.h" 5 #include "media/gpu/dxva_video_decode_accelerator_win.h"
6 6
7 #include <memory> 7 #include <memory>
8 8
9 #if !defined(OS_WIN) 9 #if !defined(OS_WIN)
10 #error This file should only be built on Windows. 10 #error This file should only be built on Windows.
(...skipping 511 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 client_ = NULL; 522 client_ = NULL;
523 } 523 }
524 524
525 bool DXVAVideoDecodeAccelerator::Initialize(const Config& config, 525 bool DXVAVideoDecodeAccelerator::Initialize(const Config& config,
526 Client* client) { 526 Client* client) {
527 if (get_gl_context_cb_.is_null() || make_context_current_cb_.is_null()) { 527 if (get_gl_context_cb_.is_null() || make_context_current_cb_.is_null()) {
528 NOTREACHED() << "GL callbacks are required for this VDA"; 528 NOTREACHED() << "GL callbacks are required for this VDA";
529 return false; 529 return false;
530 } 530 }
531 531
532 if (config.is_encrypted) { 532 if (config.is_encrypted()) {
533 NOTREACHED() << "Encrypted streams are not supported for this VDA"; 533 NOTREACHED() << "Encrypted streams are not supported for this VDA";
534 return false; 534 return false;
535 } 535 }
536 536
537 if (config.output_mode != Config::OutputMode::ALLOCATE) { 537 if (config.output_mode != Config::OutputMode::ALLOCATE) {
538 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA"; 538 NOTREACHED() << "Only ALLOCATE OutputMode is supported by this VDA";
539 return false; 539 return false;
540 } 540 }
541 541
542 client_ = client; 542 client_ = client;
(...skipping 2166 matching lines...) Expand 10 before | Expand all | Expand 10 after
2709 SetState(kConfigChange); 2709 SetState(kConfigChange);
2710 Invalidate(); 2710 Invalidate();
2711 Initialize(config_, client_); 2711 Initialize(config_, client_);
2712 decoder_thread_task_runner_->PostTask( 2712 decoder_thread_task_runner_->PostTask(
2713 FROM_HERE, 2713 FROM_HERE,
2714 base::Bind(&DXVAVideoDecodeAccelerator::DecodePendingInputBuffers, 2714 base::Bind(&DXVAVideoDecodeAccelerator::DecodePendingInputBuffers,
2715 base::Unretained(this))); 2715 base::Unretained(this)));
2716 } 2716 }
2717 2717
2718 } // namespace media 2718 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698