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

Side by Side Diff: media/mojo/services/mojo_renderer_impl.h

Issue 2008193002: Change mojo geometry structs from using type converters to StructTraits. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
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 MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 6 #define MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 bool HasAudio() override; 55 bool HasAudio() override;
56 bool HasVideo() override; 56 bool HasVideo() override;
57 57
58 private: 58 private:
59 // mojom::RendererClient implementation, dispatched on the 59 // mojom::RendererClient implementation, dispatched on the
60 // |task_runner_|. 60 // |task_runner_|.
61 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override; 61 void OnTimeUpdate(int64_t time_usec, int64_t max_time_usec) override;
62 void OnBufferingStateChange(mojom::BufferingState state) override; 62 void OnBufferingStateChange(mojom::BufferingState state) override;
63 void OnEnded() override; 63 void OnEnded() override;
64 void OnError() override; 64 void OnError() override;
65 void OnVideoNaturalSizeChange(mojo::SizePtr size) override; 65 void OnVideoNaturalSizeChange(const gfx::Size& size) override;
66 void OnVideoOpacityChange(bool opaque) override; 66 void OnVideoOpacityChange(bool opaque) override;
67 67
68 // Callback for connection error on |remote_renderer_|. 68 // Callback for connection error on |remote_renderer_|.
69 void OnConnectionError(); 69 void OnConnectionError();
70 70
71 // Called when |remote_renderer_| has finished initializing. 71 // Called when |remote_renderer_| has finished initializing.
72 void OnInitialized(bool success); 72 void OnInitialized(bool success);
73 73
74 // |task_runner| on which all methods are invoked, except for GetMediaTime(), 74 // |task_runner| on which all methods are invoked, except for GetMediaTime(),
75 // which can be called on any thread. 75 // which can be called on any thread.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Lock used to serialize access for |time_|. 108 // Lock used to serialize access for |time_|.
109 mutable base::Lock lock_; 109 mutable base::Lock lock_;
110 base::TimeDelta time_; 110 base::TimeDelta time_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl); 112 DISALLOW_COPY_AND_ASSIGN(MojoRendererImpl);
113 }; 113 };
114 114
115 } // namespace media 115 } // namespace media
116 116
117 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_ 117 #endif // MEDIA_MOJO_SERVICES_MOJO_RENDERER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698