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

Unified Diff: content/common/gpu/media/gpu_jpeg_decode_accelerator.cc

Issue 1656433002: Sample code: IPC Transport object for GPU Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: GpuMemoryBufferService + Transport object. TODO: Eliminate ChildThreadImpl dependency Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/gpu/jpeg_decode_params.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
diff --git a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
index 7408e46d9272e9ca2b726903b19913f8c595a327..25a0b29dc345adc584f2f22df0957f7904d9c141 100644
--- a/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
+++ b/content/common/gpu/media/gpu_jpeg_decode_accelerator.cc
@@ -17,6 +17,7 @@
#include "build/build_config.h"
#include "content/common/gpu/gpu_channel.h"
#include "content/common/gpu/gpu_messages.h"
+#include "content/common/gpu/jpeg_decode_params.h"
#include "ipc/ipc_message_macros.h"
#include "ipc/message_filter.h"
#include "media/filters/jpeg_parser.h"
@@ -40,7 +41,7 @@ void DecodeFinished(scoped_ptr<base::SharedMemory> shm) {
// decode finishes.
}
-bool VerifyDecodeParams(const AcceleratedJpegDecoderMsg_Decode_Params& params) {
+bool VerifyDecodeParams(const content::JpegDecodeParams& params) {
if (params.input_buffer_id < 0) {
LOG(ERROR) << "BitstreamBuffer id " << params.input_buffer_id
<< " out of range";
@@ -199,9 +200,8 @@ class GpuJpegDecodeAccelerator::MessageFilter : public IPC::MessageFilter {
route_id, buffer_id, error));
}
- void OnDecodeOnIOThread(
- const int32_t* route_id,
- const AcceleratedJpegDecoderMsg_Decode_Params& params) {
+ void OnDecodeOnIOThread(const int32_t* route_id,
+ const JpegDecodeParams& params) {
DCHECK(io_task_runner_->BelongsToCurrentThread());
DCHECK(route_id);
TRACE_EVENT0("jpeg", "GpuJpegDecodeAccelerator::MessageFilter::OnDecode");
« no previous file with comments | « content/common/gpu/jpeg_decode_params.cc ('k') | content/common/gpu/media/gpu_video_decode_accelerator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698