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

Side by Side Diff: media/gpu/ipc/client/gpu_video_encode_accelerator_host.cc

Issue 1939683002: Test X11 header pollution (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « media/gpu/ipc/client/BUILD.gn ('k') | media/gpu/ipc/common/BUILD.gn » ('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 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 "media/gpu/ipc/client/gpu_video_encode_accelerator_host.h" 5 #include "media/gpu/ipc/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 "gpu/ipc/client/gpu_channel_host.h" 10 #include "gpu/ipc/client/gpu_channel_host.h"
11 #include "media/base/video_frame.h" 11 #include "media/base/video_frame.h"
12 #include "media/gpu/ipc/common/gpu_video_accelerator_util.h" 12 #include "media/gpu/gpu_video_accelerator_util.h"
13 #include "media/gpu/ipc/common/media_messages.h" 13 #include "media/gpu/ipc/common/media_messages.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 media { 17 namespace media {
18 18
19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost( 19 GpuVideoEncodeAcceleratorHost::GpuVideoEncodeAcceleratorHost(
20 gpu::GpuChannelHost* channel, 20 gpu::GpuChannelHost* channel,
21 gpu::CommandBufferProxyImpl* impl) 21 gpu::CommandBufferProxyImpl* impl)
22 : channel_(channel), 22 : channel_(channel),
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 weak_this_factory_.InvalidateWeakPtrs(); 321 weak_this_factory_.InvalidateWeakPtrs();
322 322
323 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the 323 // Client::NotifyError() may Destroy() |this|, so calling it needs to be the
324 // last thing done on this stack! 324 // last thing done on this stack!
325 VideoEncodeAccelerator::Client* client = NULL; 325 VideoEncodeAccelerator::Client* client = NULL;
326 std::swap(client_, client); 326 std::swap(client_, client);
327 client->NotifyError(error); 327 client->NotifyError(error);
328 } 328 }
329 329
330 } // namespace media 330 } // namespace media
OLDNEW
« no previous file with comments | « media/gpu/ipc/client/BUILD.gn ('k') | media/gpu/ipc/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698