OLD | NEW |
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 REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ | 5 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ |
6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ | 6 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <deque> | 10 #include <deque> |
(...skipping 27 matching lines...) Expand all Loading... |
38 bool Initialize(pp::Instance* instance, | 38 bool Initialize(pp::Instance* instance, |
39 const ClientContext& context, | 39 const ClientContext& context, |
40 EventHandler* event_handler, | 40 EventHandler* event_handler, |
41 protocol::PerformanceTracker* perf_tracker) override; | 41 protocol::PerformanceTracker* perf_tracker) override; |
42 void OnViewChanged(const pp::View& view) override; | 42 void OnViewChanged(const pp::View& view) override; |
43 void EnableDebugDirtyRegion(bool enable) override; | 43 void EnableDebugDirtyRegion(bool enable) override; |
44 | 44 |
45 // VideoRenderer interface. | 45 // VideoRenderer interface. |
46 void OnSessionConfig(const protocol::SessionConfig& config) override; | 46 void OnSessionConfig(const protocol::SessionConfig& config) override; |
47 protocol::VideoStub* GetVideoStub() override; | 47 protocol::VideoStub* GetVideoStub() override; |
| 48 protocol::FrameConsumer* GetFrameConsumer() override; |
48 | 49 |
49 // protocol::VideoStub interface. | 50 // protocol::VideoStub interface. |
50 void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 51 void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
51 const base::Closure& done) override; | 52 const base::Closure& done) override; |
52 | 53 |
53 private: | 54 private: |
54 class PendingPacket; | 55 class PendingPacket; |
55 class Picture; | 56 class Picture; |
56 | 57 |
57 // Callback for pp::VideoDecoder::Initialize(). | 58 // Callback for pp::VideoDecoder::Initialize(). |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 bool debug_dirty_region_ = false; | 139 bool debug_dirty_region_ = false; |
139 | 140 |
140 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; | 141 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; |
141 | 142 |
142 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); | 143 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); |
143 }; | 144 }; |
144 | 145 |
145 } // namespace remoting | 146 } // namespace remoting |
146 | 147 |
147 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ | 148 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ |
OLD | NEW |