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

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

Issue 1845563005: Refactor content/common/gpu into gpu/ipc/service (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/vaapi_jpeg_decode_accelerator.h" 5 #include "content/common/gpu/media/vaapi_jpeg_decode_accelerator.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <string.h> 8 #include <string.h>
9 #include <utility> 9 #include <utility>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/thread_task_runner_handle.h" 14 #include "base/thread_task_runner_handle.h"
15 #include "base/trace_event/trace_event.h" 15 #include "base/trace_event/trace_event.h"
16 #include "content/common/gpu/gpu_channel.h"
17 #include "content/common/gpu/media/shared_memory_region.h" 16 #include "content/common/gpu/media/shared_memory_region.h"
18 #include "content/common/gpu/media/vaapi_picture.h" 17 #include "content/common/gpu/media/vaapi_picture.h"
18 #include "gpu/ipc/service/gpu_channel.h"
19 #include "media/base/video_frame.h" 19 #include "media/base/video_frame.h"
20 #include "media/filters/jpeg_parser.h" 20 #include "media/filters/jpeg_parser.h"
21 #include "third_party/libyuv/include/libyuv.h" 21 #include "third_party/libyuv/include/libyuv.h"
22 22
23 namespace content { 23 namespace content {
24 24
25 namespace { 25 namespace {
26 // UMA errors that the VaapiJpegDecodeAccelerator class reports. 26 // UMA errors that the VaapiJpegDecodeAccelerator class reports.
27 enum VAJDADecoderFailure { 27 enum VAJDADecoderFailure {
28 VAAPI_ERROR = 0, 28 VAAPI_ERROR = 0,
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 decoder_task_runner_->PostTask( 313 decoder_task_runner_->PostTask(
314 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask, 314 FROM_HERE, base::Bind(&VaapiJpegDecodeAccelerator::DecodeTask,
315 base::Unretained(this), base::Passed(&request))); 315 base::Unretained(this), base::Passed(&request)));
316 } 316 }
317 317
318 bool VaapiJpegDecodeAccelerator::IsSupported() { 318 bool VaapiJpegDecodeAccelerator::IsSupported() {
319 return VaapiWrapper::IsJpegDecodeSupported(); 319 return VaapiWrapper::IsJpegDecodeSupported();
320 } 320 }
321 321
322 } // namespace content 322 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698