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

Unified Diff: remoting/base/encoder_row_based.h

Issue 8493020: Move code in src/remoting to the new callbacks. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: - Created 9 years, 1 month 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_row_based.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/encoder_row_based.h
diff --git a/remoting/base/encoder_row_based.h b/remoting/base/encoder_row_based.h
index c510a418ce87a0e8e9659cf629a28fd343e26eed..a34a2b6d8d183ac3b75dccd68c3110ebd4c33a6f 100644
--- a/remoting/base/encoder_row_based.h
+++ b/remoting/base/encoder_row_based.h
@@ -30,9 +30,10 @@ class EncoderRowBased : public Encoder {
virtual ~EncoderRowBased();
- virtual void Encode(scoped_refptr<CaptureData> capture_data,
- bool key_frame,
- DataAvailableCallback* data_available_callback);
+ virtual void Encode(
+ scoped_refptr<CaptureData> capture_data,
+ bool key_frame,
+ const DataAvailableCallback& data_available_callback) OVERRIDE;
private:
EncoderRowBased(Compressor* compressor, VideoPacketFormat::Encoding encoding);
@@ -58,7 +59,7 @@ class EncoderRowBased : public Encoder {
scoped_ptr<Compressor> compressor_;
scoped_refptr<CaptureData> capture_data_;
- scoped_ptr<DataAvailableCallback> callback_;
+ DataAvailableCallback callback_;
// The most recent screen size.
SkISize screen_size_;
« no previous file with comments | « remoting/base/encoder.h ('k') | remoting/base/encoder_row_based.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698