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

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: rebased 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 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 void GpuVideoDecodeAccelerator::OnFlush() { 500 void GpuVideoDecodeAccelerator::OnFlush() {
501 DCHECK(video_decode_accelerator_); 501 DCHECK(video_decode_accelerator_);
502 video_decode_accelerator_->Flush(); 502 video_decode_accelerator_->Flush();
503 } 503 }
504 504
505 void GpuVideoDecodeAccelerator::OnReset() { 505 void GpuVideoDecodeAccelerator::OnReset() {
506 DCHECK(video_decode_accelerator_); 506 DCHECK(video_decode_accelerator_);
507 video_decode_accelerator_->Reset(); 507 video_decode_accelerator_->Reset();
508 } 508 }
509 509
510 void GpuVideoDecodeAccelerator::OnSetSurface(int32_t surface_id) { 510 void GpuVideoDecodeAccelerator::OnSetSurface(
511 int32_t surface_id,
512 const base::Optional<base::UnguessableToken>& routing_token) {
511 DCHECK(video_decode_accelerator_); 513 DCHECK(video_decode_accelerator_);
512 video_decode_accelerator_->SetSurface(surface_id); 514 video_decode_accelerator_->SetSurface(surface_id, routing_token);
513 } 515 }
514 516
515 void GpuVideoDecodeAccelerator::OnDestroy() { 517 void GpuVideoDecodeAccelerator::OnDestroy() {
516 DCHECK(video_decode_accelerator_); 518 DCHECK(video_decode_accelerator_);
517 OnWillDestroyStub(); 519 OnWillDestroyStub();
518 } 520 }
519 521
520 void GpuVideoDecodeAccelerator::OnFilterRemoved() { 522 void GpuVideoDecodeAccelerator::OnFilterRemoved() {
521 // We're destroying; cancel all callbacks. 523 // We're destroying; cancel all callbacks.
522 weak_factory_for_io_.InvalidateWeakPtrs(); 524 weak_factory_for_io_.InvalidateWeakPtrs();
(...skipping 10 matching lines...) Expand all
533 for (auto texture_ref : it->second) { 535 for (auto texture_ref : it->second) {
534 GLenum target = texture_ref->texture()->target(); 536 GLenum target = texture_ref->texture()->target();
535 gpu::gles2::TextureManager* texture_manager = 537 gpu::gles2::TextureManager* texture_manager =
536 stub_->decoder()->GetContextGroup()->texture_manager(); 538 stub_->decoder()->GetContextGroup()->texture_manager();
537 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true); 539 texture_manager->SetLevelCleared(texture_ref.get(), target, 0, true);
538 } 540 }
539 uncleared_textures_.erase(it); 541 uncleared_textures_.erase(it);
540 } 542 }
541 543
542 } // namespace media 544 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/ipc/service/gpu_video_decode_accelerator.h ('k') | media/mojo/clients/mojo_renderer_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698