| 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 <list> | 10 #include <list> |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 // PepperVideoRenderer that uses the PPB_VideoDecoder interface for video | 28 // PepperVideoRenderer that uses the PPB_VideoDecoder interface for video |
| 29 // decoding and Graphics3D for rendering. | 29 // decoding and Graphics3D for rendering. |
| 30 class PepperVideoRenderer3D : public PepperVideoRenderer, | 30 class PepperVideoRenderer3D : public PepperVideoRenderer, |
| 31 public protocol::VideoStub { | 31 public protocol::VideoStub { |
| 32 public: | 32 public: |
| 33 PepperVideoRenderer3D(); | 33 PepperVideoRenderer3D(); |
| 34 ~PepperVideoRenderer3D() override; | 34 ~PepperVideoRenderer3D() override; |
| 35 | 35 |
| 36 // PepperVideoRenderer interface. | 36 // PepperVideoRenderer interface. |
| 37 bool Initialize(pp::Instance* instance, | 37 bool InitializePepper(pp::Instance* instance, |
| 38 const ClientContext& context, | 38 const ClientContext& context, |
| 39 EventHandler* event_handler, | 39 EventHandler* event_handler, |
| 40 protocol::PerformanceTracker* perf_tracker) override; | 40 protocol::PerformanceTracker* perf_tracker) override; |
| 41 void OnViewChanged(const pp::View& view) override; | 41 void OnViewChanged(const pp::View& view) override; |
| 42 void EnableDebugDirtyRegion(bool enable) override; | 42 void EnableDebugDirtyRegion(bool enable) override; |
| 43 | 43 |
| 44 // VideoRenderer interface. | 44 // VideoRenderer interface. |
| 45 void OnSessionConfig(const protocol::SessionConfig& config) override; | 45 void OnSessionConfig(const protocol::SessionConfig& config) override; |
| 46 protocol::VideoStub* GetVideoStub() override; | 46 protocol::VideoStub* GetVideoStub() override; |
| 47 protocol::FrameConsumer* GetFrameConsumer() override; | 47 protocol::FrameConsumer* GetFrameConsumer() override; |
| 48 | 48 |
| 49 // protocol::VideoStub interface. | 49 // protocol::VideoStub interface. |
| 50 void ProcessVideoPacket(std::unique_ptr<VideoPacket> packet, | 50 void ProcessVideoPacket(std::unique_ptr<VideoPacket> packet, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 bool debug_dirty_region_ = false; | 151 bool debug_dirty_region_ = false; |
| 152 | 152 |
| 153 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; | 153 pp::CompletionCallbackFactory<PepperVideoRenderer3D> callback_factory_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); | 155 DISALLOW_COPY_AND_ASSIGN(PepperVideoRenderer3D); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace remoting | 158 } // namespace remoting |
| 159 | 159 |
| 160 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ | 160 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIDEO_RENDERER_3D_H_ |
| OLD | NEW |