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 #ifndef CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ | 5 #ifndef CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ |
6 #define CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ | 6 #define CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ |
7 | 7 |
8 #include "base/atomicops.h" | 8 #include "base/atomicops.h" |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 // a new readback pipeline. | 376 // a new readback pipeline. |
377 class CONTENT_EXPORT ReadbackYUVInterface { | 377 class CONTENT_EXPORT ReadbackYUVInterface { |
378 public: | 378 public: |
379 ReadbackYUVInterface() {} | 379 ReadbackYUVInterface() {} |
380 virtual ~ReadbackYUVInterface() {} | 380 virtual ~ReadbackYUVInterface() {} |
381 | 381 |
382 // Note that |target| must use YV12 format. | 382 // Note that |target| must use YV12 format. |
383 virtual void ReadbackYUV( | 383 virtual void ReadbackYUV( |
384 const gpu::Mailbox& mailbox, | 384 const gpu::Mailbox& mailbox, |
385 uint32 sync_point, | 385 uint32 sync_point, |
386 media::VideoFrame* target, | 386 const scoped_refptr<media::VideoFrame>& target, |
387 const base::Callback<void(bool)>& callback) = 0; | 387 const base::Callback<void(bool)>& callback) = 0; |
388 virtual GLHelper::ScalerInterface* scaler() = 0; | 388 virtual GLHelper::ScalerInterface* scaler() = 0; |
389 }; | 389 }; |
390 | 390 |
391 } // namespace content | 391 } // namespace content |
392 | 392 |
393 #endif // CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ | 393 #endif // CONTENT_COMMON_GPU_CLIENT_GL_HELPER_H_ |
OLD | NEW |