OLD | NEW |
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/client/gl_helper.h" | 5 #include "content/common/gpu/client/gl_helper.h" |
6 | 6 |
7 #include <queue> | 7 #include <queue> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 const gfx::Rect& src_subrect, | 246 const gfx::Rect& src_subrect, |
247 const gfx::Size& dst_size, | 247 const gfx::Size& dst_size, |
248 const gfx::Rect& dst_subrect, | 248 const gfx::Rect& dst_subrect, |
249 bool flip_vertically, | 249 bool flip_vertically, |
250 ReadbackSwizzle swizzle); | 250 ReadbackSwizzle swizzle); |
251 | 251 |
252 virtual void ReadbackYUV(const gpu::Mailbox& mailbox, | 252 virtual void ReadbackYUV(const gpu::Mailbox& mailbox, |
253 uint32 sync_point, | 253 uint32 sync_point, |
254 const scoped_refptr<media::VideoFrame>& target, | 254 const scoped_refptr<media::VideoFrame>& target, |
255 const base::Callback<void(bool)>& callback) | 255 const base::Callback<void(bool)>& callback) |
256 OVERRIDE; | 256 override; |
257 | 257 |
258 virtual ScalerInterface* scaler() OVERRIDE { return scaler_.scaler(); } | 258 virtual ScalerInterface* scaler() override { return scaler_.scaler(); } |
259 | 259 |
260 private: | 260 private: |
261 GLES2Interface* gl_; | 261 GLES2Interface* gl_; |
262 CopyTextureToImpl* copy_impl_; | 262 CopyTextureToImpl* copy_impl_; |
263 gfx::Size dst_size_; | 263 gfx::Size dst_size_; |
264 gfx::Rect dst_subrect_; | 264 gfx::Rect dst_subrect_; |
265 ReadbackSwizzle swizzle_; | 265 ReadbackSwizzle swizzle_; |
266 ScalerHolder scaler_; | 266 ScalerHolder scaler_; |
267 ScalerHolder y_; | 267 ScalerHolder y_; |
268 ScalerHolder u_; | 268 ScalerHolder u_; |
(...skipping 15 matching lines...) Expand all Loading... |
284 const gfx::Rect& src_subrect, | 284 const gfx::Rect& src_subrect, |
285 const gfx::Size& dst_size, | 285 const gfx::Size& dst_size, |
286 const gfx::Rect& dst_subrect, | 286 const gfx::Rect& dst_subrect, |
287 bool flip_vertically, | 287 bool flip_vertically, |
288 ReadbackSwizzle swizzle); | 288 ReadbackSwizzle swizzle); |
289 | 289 |
290 virtual void ReadbackYUV(const gpu::Mailbox& mailbox, | 290 virtual void ReadbackYUV(const gpu::Mailbox& mailbox, |
291 uint32 sync_point, | 291 uint32 sync_point, |
292 const scoped_refptr<media::VideoFrame>& target, | 292 const scoped_refptr<media::VideoFrame>& target, |
293 const base::Callback<void(bool)>& callback) | 293 const base::Callback<void(bool)>& callback) |
294 OVERRIDE; | 294 override; |
295 | 295 |
296 virtual ScalerInterface* scaler() OVERRIDE { return scaler_.scaler(); } | 296 virtual ScalerInterface* scaler() override { return scaler_.scaler(); } |
297 | 297 |
298 private: | 298 private: |
299 GLES2Interface* gl_; | 299 GLES2Interface* gl_; |
300 CopyTextureToImpl* copy_impl_; | 300 CopyTextureToImpl* copy_impl_; |
301 gfx::Size dst_size_; | 301 gfx::Size dst_size_; |
302 gfx::Rect dst_subrect_; | 302 gfx::Rect dst_subrect_; |
303 GLHelper::ScalerQuality quality_; | 303 GLHelper::ScalerQuality quality_; |
304 ReadbackSwizzle swizzle_; | 304 ReadbackSwizzle swizzle_; |
305 ScalerHolder scaler_; | 305 ScalerHolder scaler_; |
306 scoped_ptr<content::GLHelperScaling::ShaderInterface> pass1_shader_; | 306 scoped_ptr<content::GLHelperScaling::ShaderInterface> pass1_shader_; |
(...skipping 1047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1354 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality, | 1354 return copy_texture_to_impl_->CreateReadbackPipelineYUV(quality, |
1355 src_size, | 1355 src_size, |
1356 src_subrect, | 1356 src_subrect, |
1357 dst_size, | 1357 dst_size, |
1358 dst_subrect, | 1358 dst_subrect, |
1359 flip_vertically, | 1359 flip_vertically, |
1360 use_mrt); | 1360 use_mrt); |
1361 } | 1361 } |
1362 | 1362 |
1363 } // namespace content | 1363 } // namespace content |
OLD | NEW |