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

Side by Side Diff: chromecast/media/cma/pipeline/video_pipeline_client.h

Issue 1372393007: [Chromecast] Upgrade to new CMA backend API (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 5 years, 2 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
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_PIPELINE_VIDEO_PIPELINE_CLIENT_H_ 5 #ifndef CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_
6 #define CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_ 6 #define CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "chromecast/media/cma/pipeline/av_pipeline_client.h" 9 #include "chromecast/media/cma/pipeline/av_pipeline_client.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Size; 12 class Size;
13 } 13 }
14 14
15 namespace chromecast { 15 namespace chromecast {
16 namespace media { 16 namespace media {
17 17
18 struct VideoPipelineClient { 18 struct RendererVideoPipelineClient {
19 typedef base::Callback<void( 19 typedef base::Callback<void(
20 const gfx::Size& natural_size)> NaturalSizeChangedCB; 20 const gfx::Size& natural_size)> NaturalSizeChangedCB;
21 21
22 VideoPipelineClient(); 22 RendererVideoPipelineClient();
23 ~VideoPipelineClient(); 23 ~RendererVideoPipelineClient();
24 24
25 // All the default callbacks. 25 // All the default callbacks.
26 AvPipelineClient av_pipeline_client; 26 RendererAvPipelineClient av_pipeline_client;
27 27
28 // Video resolution change notification. 28 // Video resolution change notification.
29 NaturalSizeChangedCB natural_size_changed_cb; 29 NaturalSizeChangedCB natural_size_changed_cb;
30 };
31
32 struct BrowserVideoPipelineClient {
33 typedef base::Callback<void(const gfx::Size& natural_size)>
34 NaturalSizeChangedCB;
35
36 BrowserVideoPipelineClient();
37 ~BrowserVideoPipelineClient();
38
39 // All the default callbacks.
40 BrowserAvPipelineClient av_pipeline_client;
41
42 // Video resolution change notification.
43 NaturalSizeChangedCB natural_size_changed_cb;
30 }; 44 };
31 45
32 } // namespace media 46 } // namespace media
33 } // namespace chromecast 47 } // namespace chromecast
34 48
35 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_ 49 #endif // CHROMECAST_MEDIA_CMA_PIPELINE_VIDEO_PIPELINE_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698