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

Unified Diff: remoting/client/rectangle_update_decoder.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: fix win and mac 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
Index: remoting/client/rectangle_update_decoder.h
diff --git a/remoting/client/rectangle_update_decoder.h b/remoting/client/rectangle_update_decoder.h
index d44bb6fae97580b559697c8867d2ba558e239040..48a9839980d28ce38ae2aa059ef4b618ca443fa2 100644
--- a/remoting/client/rectangle_update_decoder.h
+++ b/remoting/client/rectangle_update_decoder.h
@@ -38,10 +38,7 @@ class RectangleUpdateDecoder :
// regsitered as data is avaialable. DecodePacket may keep a reference to
// |packet| so the |packet| must remain alive and valid until |done| is
// executed.
- //
- // TODO(ajwong): Should packet be a const pointer to make the lifetime
- // more clear?
- void DecodePacket(const VideoPacket* packet, Task* done);
+ void DecodePacket(const VideoPacket* packet, const base::Closure& done);
// Set the scale ratio for the decoded video frame. Scale ratio greater
// than 1.0 is not supported.
@@ -64,8 +61,8 @@ class RectangleUpdateDecoder :
~RectangleUpdateDecoder();
- void AllocateFrame(const VideoPacket* packet, Task* done);
- void ProcessPacketData(const VideoPacket* packet, Task* done);
+ void AllocateFrame(const VideoPacket* packet, const base::Closure& done);
+ void ProcessPacketData(const VideoPacket* packet, const base::Closure& done);
void RefreshRects(const RectVector& rects);
// Obtain updated rectangles from decoder and submit it to the consumer.

Powered by Google App Engine
This is Rietveld 408576698