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

Unified Diff: remoting/base/codec_test.cc

Issue 3013015: Initial pass at integrating Differ into the chromoting host code.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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/capture_data.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/codec_test.cc
===================================================================
--- remoting/base/codec_test.cc (revision 55264)
+++ remoting/base/codec_test.cc (working copy)
@@ -339,8 +339,9 @@
scoped_refptr<CaptureData> data,
const gfx::Rect* rects, int count) {
data->mutable_dirty_rects().clear();
- data->mutable_dirty_rects().insert(
- data->mutable_dirty_rects().begin(), rects, rects + count);
+ for (int i = 0; i < count; ++i) {
+ data->mutable_dirty_rects().insert(rects[i]);
+ }
tester->AddRects(rects, count);
encoder->Encode(data, true,
@@ -371,8 +372,9 @@
scoped_refptr<CaptureData> data,
const gfx::Rect* rects, int count) {
data->mutable_dirty_rects().clear();
- data->mutable_dirty_rects().insert(
- data->mutable_dirty_rects().begin(), rects, rects + count);
+ for (int i = 0; i < count; ++i) {
+ data->mutable_dirty_rects().insert(rects[i]);
+ }
encoder_tester->AddRects(rects, count);
decoder_tester->AddRects(rects, count);
decoder_tester->reset_decode_done();
« no previous file with comments | « remoting/base/capture_data.h ('k') | remoting/base/encoder_verbatim.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698