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

Side by Side Diff: content/common/gpu/media/gpu_video_decode_accelerator.cc

Issue 10392068: ui: Move gl/ directory out of gfx/, up to ui/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac_rel Created 8 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 | Annotate | Revision Log
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 "content/common/gpu/media/gpu_video_decode_accelerator.h" 5 #include "content/common/gpu/media/gpu_video_decode_accelerator.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/stl_util.h" 11 #include "base/stl_util.h"
12 12
13 #if defined(OS_WIN) 13 #if defined(OS_WIN)
14 #include "base/win/windows_version.h" 14 #include "base/win/windows_version.h"
15 #endif // OS_WIN 15 #endif // OS_WIN
16 16
17 #include "content/common/gpu/gpu_channel.h"
18 #include "content/common/gpu/gpu_command_buffer_stub.h"
19 #include "content/common/gpu/gpu_messages.h"
17 #include "gpu/command_buffer/common/command_buffer.h" 20 #include "gpu/command_buffer/common/command_buffer.h"
18 #include "ipc/ipc_message_macros.h" 21 #include "ipc/ipc_message_macros.h"
19 #include "ipc/ipc_message_utils.h" 22 #include "ipc/ipc_message_utils.h"
20 #include "content/common/gpu/gpu_channel.h"
21 #include "content/common/gpu/gpu_command_buffer_stub.h"
22 #include "content/common/gpu/gpu_messages.h"
23 23
24 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)) || defined(OS_WIN) 24 #if (defined(OS_CHROMEOS) && defined(ARCH_CPU_ARMEL)) || defined(OS_WIN)
25 #if defined(OS_WIN) 25 #if defined(OS_WIN)
26 #include "content/common/gpu/media/dxva_video_decode_accelerator.h" 26 #include "content/common/gpu/media/dxva_video_decode_accelerator.h"
27 #else // OS_WIN 27 #else // OS_WIN
28 #include "content/common/gpu/media/omx_video_decode_accelerator.h" 28 #include "content/common/gpu/media/omx_video_decode_accelerator.h"
29 #endif // OS_WIN 29 #endif // OS_WIN
30 #include "ui/gfx/gl/gl_context.h" 30 #include "ui/gl/gl_context.h"
31 #include "ui/gfx/gl/gl_surface_egl.h" 31 #include "ui/gl/gl_surface_egl.h"
32 #endif 32 #endif
33 33
34 #include "gpu/command_buffer/service/texture_manager.h" 34 #include "gpu/command_buffer/service/texture_manager.h"
35 #include "ui/gfx/size.h" 35 #include "ui/gfx/size.h"
36 36
37 using gpu::gles2::TextureManager; 37 using gpu::gles2::TextureManager;
38 38
39 GpuVideoDecodeAccelerator::GpuVideoDecodeAccelerator( 39 GpuVideoDecodeAccelerator::GpuVideoDecodeAccelerator(
40 IPC::Message::Sender* sender, 40 IPC::Message::Sender* sender,
41 int32 host_route_id, 41 int32 host_route_id,
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 235
236 void GpuVideoDecodeAccelerator::NotifyResetDone() { 236 void GpuVideoDecodeAccelerator::NotifyResetDone() {
237 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_))) 237 if (!Send(new AcceleratedVideoDecoderHostMsg_ResetDone(host_route_id_)))
238 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed"; 238 DLOG(ERROR) << "Send(AcceleratedVideoDecoderHostMsg_ResetDone) failed";
239 } 239 }
240 240
241 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) { 241 bool GpuVideoDecodeAccelerator::Send(IPC::Message* message) {
242 DCHECK(sender_); 242 DCHECK(sender_);
243 return sender_->Send(message); 243 return sender_->Send(message);
244 } 244 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698