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

Unified Diff: remoting/base/encoder_verbatim.h

Issue 2840036: Moving Encoder and Decoder to remoting/base (Closed)
Patch Set: fix DEPS Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/base/encoder.h ('k') | remoting/base/encoder_verbatim.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder_verbatim.h
diff --git a/remoting/host/encoder_verbatim.h b/remoting/base/encoder_verbatim.h
similarity index 67%
rename from remoting/host/encoder_verbatim.h
rename to remoting/base/encoder_verbatim.h
index 175b95417a20d39ccb88d7a188f408a37e43b309..dd019fca9e6b4ec62081c75bd913a4fb8e615582 100644
--- a/remoting/host/encoder_verbatim.h
+++ b/remoting/base/encoder_verbatim.h
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef REMOTING_HOST_ENCODER_VERBATIM_H_
-#define REMOTING_HOST_ENCODER_VERBATIM_H_
+#ifndef REMOTING_BASE_ENCODER_VERBATIM_H_
+#define REMOTING_BASE_ENCODER_VERBATIM_H_
-#include "remoting/host/encoder.h"
+#include "remoting/base/encoder.h"
namespace remoting {
@@ -18,7 +18,7 @@ class EncoderVerbatim : public Encoder {
EncoderVerbatim() {}
virtual ~EncoderVerbatim() {}
- virtual void Encode(scoped_refptr<Capturer::CaptureData> capture_data,
+ virtual void Encode(scoped_refptr<CaptureData> capture_data,
bool key_frame,
DataAvailableCallback* data_available_callback);
@@ -26,11 +26,11 @@ class EncoderVerbatim : public Encoder {
// Encode a single dirty rect. Called by Encode(). Output is written
// to |msg|.
// Returns false if there is an error.
- bool EncodeRect(const gfx::Rect& dirty,
- const scoped_refptr<Capturer::CaptureData>& capture_data,
+ bool EncodeRect(int x, int y, int width, int height,
+ const scoped_refptr<CaptureData>& capture_data,
UpdateStreamPacketMessage* msg);
};
} // namespace remoting
-#endif // REMOTING_HOST_ENCODER_VERBATIM_H_
+#endif // REMOTING_BASE_ENCODER_VERBATIM_H_
« no previous file with comments | « remoting/base/encoder.h ('k') | remoting/base/encoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698