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

Unified Diff: trunk/src/remoting/codec/video_decoder.h

Issue 24217003: Revert 224101 "Remove dependency on Skia from chromoting client." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « trunk/src/remoting/codec/codec_test.cc ('k') | trunk/src/remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/remoting/codec/video_decoder.h
===================================================================
--- trunk/src/remoting/codec/video_decoder.h (revision 224204)
+++ trunk/src/remoting/codec/video_decoder.h (working copy)
@@ -7,13 +7,10 @@
#include "base/basictypes.h"
#include "remoting/proto/video.pb.h"
+#include "third_party/skia/include/core/SkRect.h"
+#include "third_party/skia/include/core/SkRegion.h"
+#include "third_party/skia/include/core/SkSize.h"
-namespace webrtc {
-class DesktopRect;
-class DesktopRegion;
-class DesktopSize;
-} // namespace webrtc
-
namespace remoting {
// Interface for a decoder that takes a stream of bytes from the network and
@@ -34,7 +31,7 @@
// Initializes the decoder and sets the output dimensions.
// |screen size| must not be empty.
- virtual void Initialize(const webrtc::DesktopSize& screen_size) = 0;
+ virtual void Initialize(const SkISize& screen_size) = 0;
// Feeds more data into the decoder.
virtual DecodeResult DecodePacket(const VideoPacket* packet) = 0;
@@ -47,8 +44,8 @@
// Marks the specified |region| of the view for update the next time
// RenderFrame() is called. |region| is expressed in |view_size| coordinates.
// |view_size| must not be empty.
- virtual void Invalidate(const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRegion& region) = 0;
+ virtual void Invalidate(const SkISize& view_size,
+ const SkRegion& region) = 0;
// Copies invalidated pixels within |clip_area| to |image_buffer|. Pixels are
// invalidated either by new data received in DecodePacket(), or by explicit
@@ -62,15 +59,15 @@
//
// On return, |output_region| contains the updated area, in |view_size|
// coordinates.
- virtual void RenderFrame(const webrtc::DesktopSize& view_size,
- const webrtc::DesktopRect& clip_area,
+ virtual void RenderFrame(const SkISize& view_size,
+ const SkIRect& clip_area,
uint8* image_buffer,
int image_stride,
- webrtc::DesktopRegion* output_region) = 0;
+ SkRegion* output_region) = 0;
// Returns the "shape", if any, of the most recently rendered frame.
// The shape is returned in source dimensions.
- virtual const webrtc::DesktopRegion* GetImageShape() = 0;
+ virtual const SkRegion* GetImageShape() = 0;
};
} // namespace remoting
« no previous file with comments | « trunk/src/remoting/codec/codec_test.cc ('k') | trunk/src/remoting/codec/video_decoder_verbatim.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698