| 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 <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 32 ~PepperVideoRenderer3D() override; | 32 ~PepperVideoRenderer3D() override; |
| 33 | 33 |
| 34 // PepperVideoRenderer interface. | 34 // PepperVideoRenderer interface. |
| 35 bool Initialize(pp::Instance* instance, | 35 bool Initialize(pp::Instance* instance, |
| 36 const ClientContext& context, | 36 const ClientContext& context, |
| 37 EventHandler* event_handler) override; | 37 EventHandler* event_handler) override; |
| 38 void OnViewChanged(const pp::View& view) override; | 38 void OnViewChanged(const pp::View& view) override; |
| 39 void OnSessionConfig(const protocol::SessionConfig& config) override; | 39 void OnSessionConfig(const protocol::SessionConfig& config) override; |
| 40 ChromotingStats* GetStats() override; | 40 ChromotingStats* GetStats() override; |
| 41 void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, | 41 void ProcessVideoPacket(scoped_ptr<VideoPacket> packet, |
| 42 const base::Closure& done) override; | 42 const ProgressCallback& progress_callback) override; |
| 43 | 43 |
| 44 private: | 44 private: |
| 45 class PendingPacket; | 45 class PendingPacket; |
| 46 class Picture; | 46 class Picture; |
| 47 | 47 |
| 48 struct FrameDecodeTimestamp { | 48 struct FrameDecodeTimestamp { |
| 49 FrameDecodeTimestamp(uint32_t frame_id, | 49 FrameDecodeTimestamp(uint32_t frame_id, |
| 50 base::TimeTicks decode_started_time); | 50 base::TimeTicks decode_started_time); |
| 51 uint32_t frame_id; | 51 uint32_t frame_id; |
| 52 base::TimeTicks decode_started_time; | 52 base::TimeTicks decode_started_time; |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 int shader_texcoord_scale_location_; | 143 int shader_texcoord_scale_location_; |
| 144 | 144 |
| 145 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; | 145 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; |
| 146 | 146 |
| 147 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); | 147 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); |
| 148 }; | 148 }; |
| 149 | 149 |
| 150 } // namespace remoting | 150 } // namespace remoting |
| 151 | 151 |
| 152 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ | 152 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ |
| OLD | NEW |