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

Side by Side Diff: remoting/client/plugin/pepper_view.h

Issue 23677011: Byte-swap the video frame pixels before passing them to Java. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add PixelFormat to FrameConsumer interface Created 7 years, 2 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class is an implementation of the ChromotingView for Pepper. It is 5 // This class is an implementation of the ChromotingView for Pepper. It is
6 // callable only on the Pepper thread. 6 // callable only on the Pepper thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 9 #define REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
10 10
(...skipping 30 matching lines...) Expand all
41 virtual ~PepperView(); 41 virtual ~PepperView();
42 42
43 // FrameConsumer implementation. 43 // FrameConsumer implementation.
44 virtual void ApplyBuffer(const SkISize& view_size, 44 virtual void ApplyBuffer(const SkISize& view_size,
45 const SkIRect& clip_area, 45 const SkIRect& clip_area,
46 webrtc::DesktopFrame* buffer, 46 webrtc::DesktopFrame* buffer,
47 const SkRegion& region) OVERRIDE; 47 const SkRegion& region) OVERRIDE;
48 virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) OVERRIDE; 48 virtual void ReturnBuffer(webrtc::DesktopFrame* buffer) OVERRIDE;
49 virtual void SetSourceSize(const SkISize& source_size, 49 virtual void SetSourceSize(const SkISize& source_size,
50 const SkIPoint& dpi) OVERRIDE; 50 const SkIPoint& dpi) OVERRIDE;
51 virtual PixelFormat GetPixelFormat() OVERRIDE;
51 52
52 // Updates the PepperView's size & clipping area, taking into account the 53 // Updates the PepperView's size & clipping area, taking into account the
53 // DIP-to-device scale factor. 54 // DIP-to-device scale factor.
54 void SetView(const pp::View& view); 55 void SetView(const pp::View& view);
55 56
56 // Returns the dimensions of the most recently displayed frame, in pixels. 57 // Returns the dimensions of the most recently displayed frame, in pixels.
57 const SkISize& get_source_size() const { 58 const SkISize& get_source_size() const {
58 return source_size_; 59 return source_size_;
59 } 60 }
60 61
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 bool frame_received_; 144 bool frame_received_;
144 145
145 pp::CompletionCallbackFactory<PepperView> callback_factory_; 146 pp::CompletionCallbackFactory<PepperView> callback_factory_;
146 147
147 DISALLOW_COPY_AND_ASSIGN(PepperView); 148 DISALLOW_COPY_AND_ASSIGN(PepperView);
148 }; 149 };
149 150
150 } // namespace remoting 151 } // namespace remoting
151 152
152 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_ 153 #endif // REMOTING_CLIENT_PLUGIN_PEPPER_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698