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

Side by Side Diff: media/gpu/ipc/service/gpu_video_decode_accelerator.cc

Issue 2849043002: Send AndroidOverlay routing token from WMPI to AVDA. (Closed)
Patch Set: merged HaveOverlayInfo and SendOverlayInfo Created 3 years, 7 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/ipc/service/gpu_video_decode_accelerator.h" 5 #include "media/gpu/ipc/service/gpu_video_decode_accelerator.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
498 void GpuVideoDecodeAccelerator::OnFlush() { 498 void GpuVideoDecodeAccelerator::OnFlush() {
499 DCHECK(video_decode_accelerator_); 499 DCHECK(video_decode_accelerator_);
500 video_decode_accelerator_->Flush(); 500 video_decode_accelerator_->Flush();
501 } 501 }
502 502
503 void GpuVideoDecodeAccelerator::OnReset() { 503 void GpuVideoDecodeAccelerator::OnReset() {
504 DCHECK(video_decode_accelerator_); 504 DCHECK(video_decode_accelerator_);
505 video_decode_accelerator_->Reset(); 505 video_decode_accelerator_->Reset();
506 } 506 }
507 507
508 void GpuVideoDecodeAccelerator::OnSetSurface(int32_t surface_id) { 508 void GpuVideoDecodeAccelerator::OnSetSurface(
509 int32_t surface_id,
510 const base::Optional<base::UnguessableToken>& routing_token) {
509 DCHECK(video_decode_accelerator_); 511 DCHECK(video_decode_accelerator_);
510 video_decode_accelerator_->SetSurface(surface_id); 512 video_decode_accelerator_->SetSurface(surface_id, routing_token);
511 } 513 }
512 514
513 void GpuVideoDecodeAccelerator::OnDestroy() { 515 void GpuVideoDecodeAccelerator::OnDestroy() {
514 DCHECK(video_decode_accelerator_); 516 DCHECK(video_decode_accelerator_);
515 OnWillDestroyStub(); 517 OnWillDestroyStub();
516 } 518 }
517 519
518 void GpuVideoDecodeAccelerator::OnFilterRemoved() { 520 void GpuVideoDecodeAccelerator::OnFilterRemoved() {
519 // We're destroying; cancel all callbacks. 521 // We're destroying; cancel all callbacks.
520 weak_factory_for_io_.InvalidateWeakPtrs(); 522 weak_factory_for_io_.InvalidateWeakPtrs();
(...skipping 10 matching lines...) Expand all
531 for (auto texture_ref : it->second) { 533 for (auto texture_ref : it->second) {
532 GLenum target = texture_ref->texture()->target(); 534 GLenum target = texture_ref->texture()->target();
533 gpu::gles2::TextureManager* texture_manager = 535 gpu::gles2::TextureManager* texture_manager =
534 stub_->decoder()->GetContextGroup()->texture_manager(); 536 stub_->decoder()->GetContextGroup()->texture_manager();
535 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); 537 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true);
536 } 538 }
537 uncleared_textures_.erase(it); 539 uncleared_textures_.erase(it);
538 } 540 }
539 541
540 } // namespace media 542 } // namespace media
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698