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

Side by Side Diff: media/gpu/vp8_picture.h

Issue 2926593002: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client (Closed)
Patch Set: V4L2SVDA/VAAPIVDA: use visible size from decoder and pass to client Created 3 years, 6 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 | « media/gpu/vp8_decoder.cc ('k') | media/gpu/vp9_decoder.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 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.
25 gfx::Rect visible_rect;
26
23 protected: 27 protected:
24 friend class base::RefCounted<VP8Picture>; 28 friend class base::RefCounted<VP8Picture>;
25 virtual ~VP8Picture(); 29 virtual ~VP8Picture();
26 30
27 DISALLOW_COPY_AND_ASSIGN(VP8Picture); 31 DISALLOW_COPY_AND_ASSIGN(VP8Picture);
28 }; 32 };
29 33
30 } // namespace media 34 } // namespace media
31 35
32 #endif // MEDIA_GPU_VP8_PICTURE_H_ 36 #endif // MEDIA_GPU_VP8_PICTURE_H_
OLDNEW
« no previous file with comments | « media/gpu/vp8_decoder.cc ('k') | media/gpu/vp9_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698