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

Side by Side Diff: content/common/gpu/client/gpu_video_encode_accelerator_host.cc

Issue 1736643005: Decouple Media Service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Another try to fix Windows Created 4 years, 9 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/client/gpu_video_encode_accelerator_host.h" 5 #include "content/common/gpu/client/gpu_video_encode_accelerator_host.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "content/common/gpu/client/gpu_channel_host.h" 10 #include "content/common/gpu/client/gpu_channel_host.h"
11 #include "content/common/gpu/media/gpu_video_accelerator_util.h" 11 #include "content/common/gpu/media/gpu_video_accelerator_util.h"
12 #include "content/common/gpu/media_messages.h" 12 #include "content/common/gpu/media/media_messages.h"
13 #include "media/base/video_frame.h" 13 #include "media/base/video_frame.h"
14 #include "media/video/video_encode_accelerator.h" 14 #include "media/video/video_encode_accelerator.h"
15 #include "ui/gfx/gpu_memory_buffer.h" 15 #include "ui/gfx/gpu_memory_buffer.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost( 19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost(
20 GpuChannelHost* channel, 20 GpuChannelHost* channel,
21 CommandBufferProxyImpl* impl) 21 CommandBufferProxyImpl* impl)
22 : channel_(channel), 22 : channel_(channel),
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 weak_this_factory_.InvalidateWeakPtrs(); 315 weak_this_factory_.InvalidateWeakPtrs();
316 316
317 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the 317 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the
318 // last thing done on this stack! 318 // last thing done on this stack!
319 media::VideoEncodeAccelerator::Client* client = NULL; 319 media::VideoEncodeAccelerator::Client* client = NULL;
320 std::swap(client_, client); 320 std::swap(client_, client);
321 client->NotifyError(error); 321 client->NotifyError(error);
322 } 322 }
323 323
324 } // namespace content 324 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698