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

Side by Side Diff: chromecast/media/cma/backend/video_plane.h

Issue 878843004: Chromecast: update VideoPlane CoordinateType list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
6 #define CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_ 6 #define CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class QuadF; 12 class QuadF;
13 class Size; 13 class Size;
14 } 14 }
15 15
16 namespace chromecast { 16 namespace chromecast {
17 namespace media { 17 namespace media {
18 18
19 class VideoPlane { 19 class VideoPlane {
20 public: 20 public:
21 enum CoordinateType { 21 enum CoordinateType {
22 // Graphics plane as coordinate type. 22 // Graphics plane as coordinate type.
23 COORDINATE_TYPE_GRAPHICS_PLANE = 0, 23 COORDINATE_TYPE_GRAPHICS_PLANE = 0,
24 24 // Output display screen as coordinate type.
25 // Output video plane as coordinate type. 25 COORDINATE_TYPE_SCREEN_RESOLUTION = 1,
26 COORDINATE_TYPE_VIDEO_PLANE_RESOLUTION = 1,
27 }; 26 };
28 27
29 VideoPlane(); 28 VideoPlane();
30 virtual ~VideoPlane(); 29 virtual ~VideoPlane();
31 30
32 // Gets output screen resolution. 31 // Gets output screen resolution.
33 virtual gfx::Size GetScreenResolution() = 0; 32 virtual gfx::Size GetScreenResolution() = 0;
34 33
35 // Updates the video plane geometry. 34 // Updates the video plane geometry.
36 // |quad.p1()| corresponds to the top left of the original video, 35 // |quad.p1()| corresponds to the top left of the original video,
(...skipping 17 matching lines...) Expand all
54 // Factory to create a VideoPlane. 53 // Factory to create a VideoPlane.
55 scoped_ptr<VideoPlane> CreateVideoPlane(); 54 scoped_ptr<VideoPlane> CreateVideoPlane();
56 55
57 // Global accessor to the video plane. 56 // Global accessor to the video plane.
58 VideoPlane* GetVideoPlane(); 57 VideoPlane* GetVideoPlane();
59 58
60 } // namespace media 59 } // namespace media
61 } // namespace chromecast 60 } // namespace chromecast
62 61
63 #endif // CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_ 62 #endif // CHROMECAST_MEDIA_CMA_BACKEND_VIDEO_PLANE_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698