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

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

Issue 1239443003: Revert of Create VA surface with correct VA RT format for MJPEG decode acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 | « no previous file | content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc » ('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 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 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ 5 #ifndef CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_
6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ 6 #define CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_
7 7
8 #include "base/memory/linked_ptr.h" 8 #include "base/memory/linked_ptr.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "base/single_thread_task_runner.h" 10 #include "base/single_thread_task_runner.h"
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 base::Thread decoder_thread_; 94 base::Thread decoder_thread_;
95 // Use this to post tasks to |decoder_thread_| instead of 95 // Use this to post tasks to |decoder_thread_| instead of
96 // |decoder_thread_.task_runner()| because the latter will be NULL once 96 // |decoder_thread_.task_runner()| because the latter will be NULL once
97 // |decoder_thread_.Stop()| returns. 97 // |decoder_thread_.Stop()| returns.
98 scoped_refptr<base::SingleThreadTaskRunner> decoder_task_runner_; 98 scoped_refptr<base::SingleThreadTaskRunner> decoder_task_runner_;
99 99
100 // The current VA surface for decoding. 100 // The current VA surface for decoding.
101 VASurfaceID va_surface_id_; 101 VASurfaceID va_surface_id_;
102 // The coded size associated with |va_surface_id_|. 102 // The coded size associated with |va_surface_id_|.
103 gfx::Size coded_size_; 103 gfx::Size coded_size_;
104 // The VA RT format associated with |va_surface_id_|.
105 unsigned int va_rt_format_;
106 104
107 // The WeakPtrFactory for |weak_this_|. 105 // The WeakPtrFactory for |weak_this_|.
108 base::WeakPtrFactory<VaapiJpegDecodeAccelerator> weak_this_factory_; 106 base::WeakPtrFactory<VaapiJpegDecodeAccelerator> weak_this_factory_;
109 107
110 DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator); 108 DISALLOW_COPY_AND_ASSIGN(VaapiJpegDecodeAccelerator);
111 }; 109 };
112 110
113 } // namespace content 111 } // namespace content
114 112
115 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_ 113 #endif // CONTENT_COMMON_GPU_MEDIA_VAAPI_JPEG_DECODE_ACCELERATOR_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/gpu/media/vaapi_jpeg_decode_accelerator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698