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

Side by Side Diff: remoting/client/jni/jni_frame_consumer.h

Issue 1236663002: Allow shaped-desktop hosts to send shape only when it changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Pepper 2D renderer build Created 5 years, 5 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_JNI_JNI_FRAME_CONSUMER_H_ 5 #ifndef REMOTING_CLIENT_JNI_JNI_FRAME_CONSUMER_H_
6 #define REMOTING_CLIENT_JNI_JNI_FRAME_CONSUMER_H_ 6 #define REMOTING_CLIENT_JNI_JNI_FRAME_CONSUMER_H_
7 7
8 #include <list> 8 #include <list>
9 9
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 26 matching lines...) Expand all
37 ~JniFrameConsumer() override; 37 ~JniFrameConsumer() override;
38 38
39 // This must be called once before the producer's source size is set. 39 // This must be called once before the producer's source size is set.
40 void set_frame_producer(FrameProducer* producer); 40 void set_frame_producer(FrameProducer* producer);
41 41
42 // FrameConsumer implementation. 42 // FrameConsumer implementation.
43 void ApplyBuffer(const webrtc::DesktopSize& view_size, 43 void ApplyBuffer(const webrtc::DesktopSize& view_size,
44 const webrtc::DesktopRect& clip_area, 44 const webrtc::DesktopRect& clip_area,
45 webrtc::DesktopFrame* buffer, 45 webrtc::DesktopFrame* buffer,
46 const webrtc::DesktopRegion& region, 46 const webrtc::DesktopRegion& region,
47 const webrtc::DesktopRegion& shape) override; 47 const webrtc::DesktopRegion* shape) override;
48 void ReturnBuffer(webrtc::DesktopFrame* buffer) override; 48 void ReturnBuffer(webrtc::DesktopFrame* buffer) override;
49 void SetSourceSize(const webrtc::DesktopSize& source_size, 49 void SetSourceSize(const webrtc::DesktopSize& source_size,
50 const webrtc::DesktopVector& dpi) override; 50 const webrtc::DesktopVector& dpi) override;
51 PixelFormat GetPixelFormat() override; 51 PixelFormat GetPixelFormat() override;
52 52
53 private: 53 private:
54 // Allocates a new buffer of |source_size|, informs Java about it, and tells 54 // Allocates a new buffer of |source_size|, informs Java about it, and tells
55 // the producer to draw onto it. 55 // the producer to draw onto it.
56 void AllocateBuffer(const webrtc::DesktopSize& source_size); 56 void AllocateBuffer(const webrtc::DesktopSize& source_size);
57 57
(...skipping 23 matching lines...) Expand all
81 // Reference to the frame bitmap that is passed to Java when the frame is 81 // Reference to the frame bitmap that is passed to Java when the frame is
82 // allocated. This provides easy access to the underlying pixels. 82 // allocated. This provides easy access to the underlying pixels.
83 scoped_ptr<gfx::JavaBitmap> bitmap_; 83 scoped_ptr<gfx::JavaBitmap> bitmap_;
84 84
85 DISALLOW_COPY_AND_ASSIGN(JniFrameConsumer); 85 DISALLOW_COPY_AND_ASSIGN(JniFrameConsumer);
86 }; 86 };
87 87
88 } // namespace remoting 88 } // namespace remoting
89 89
90 #endif 90 #endif
OLDNEW
« no previous file with comments | « remoting/client/jni/chromoting_jni_instance.cc ('k') | remoting/client/jni/jni_frame_consumer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698