OLD | NEW |
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 MEDIA_GPU_VP8_PICTURE_H_ | 5 #ifndef MEDIA_GPU_VP8_PICTURE_H_ |
6 #define MEDIA_GPU_VP8_PICTURE_H_ | 6 #define MEDIA_GPU_VP8_PICTURE_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "ui/gfx/geometry/rect.h" |
10 | 11 |
11 namespace media { | 12 namespace media { |
12 | 13 |
13 class V4L2VP8Picture; | 14 class V4L2VP8Picture; |
14 class VaapiVP8Picture; | 15 class VaapiVP8Picture; |
15 | 16 |
16 class VP8Picture : public base::RefCounted<VP8Picture> { | 17 class VP8Picture : public base::RefCounted<VP8Picture> { |
17 public: | 18 public: |
18 VP8Picture(); | 19 VP8Picture(); |
19 | 20 |
20 virtual V4L2VP8Picture* AsV4L2VP8Picture(); | 21 virtual V4L2VP8Picture* AsV4L2VP8Picture(); |
21 virtual VaapiVP8Picture* AsVaapiVP8Picture(); | 22 virtual VaapiVP8Picture* AsVaapiVP8Picture(); |
22 | 23 |
| 24 // The visible size of picture. In VP8 codec visible size should be always as |
| 25 // large as picture size. |
| 26 gfx::Rect visible_rect; |
| 27 |
23 protected: | 28 protected: |
24 friend class base::RefCounted<VP8Picture>; | 29 friend class base::RefCounted<VP8Picture>; |
25 virtual ~VP8Picture(); | 30 virtual ~VP8Picture(); |
26 | 31 |
27 DISALLOW_COPY_AND_ASSIGN(VP8Picture); | 32 DISALLOW_COPY_AND_ASSIGN(VP8Picture); |
28 }; | 33 }; |
29 | 34 |
30 } // namespace media | 35 } // namespace media |
31 | 36 |
32 #endif // MEDIA_GPU_VP8_PICTURE_H_ | 37 #endif // MEDIA_GPU_VP8_PICTURE_H_ |
OLD | NEW |