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

Issue 7491070: Switch over to using SkRegions to calculate dirty areas. (Closed)

Created:
9 years, 4 months ago by dmac
Modified:
9 years, 4 months ago
CC:
chromium-reviews, jamiewalch+watch_chromium.org, hclam+watch_chromium.org, simonmorris+watch_chromium.org, wez+watch_chromium.org, Paweł Hajdan Jr., dmaclach+watch_chromium.org, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, ajwong+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Switch over to using SkRegions to calculate dirty areas. BUG=91619 TEST=Set up a remoting sesssion and make sure it works. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96327 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96632

Patch Set 1 #

Patch Set 2 : Remove remoting/base/types.h #

Patch Set 3 : clean up comments #

Total comments: 53

Patch Set 4 : cleaned up comments #

Total comments: 16

Patch Set 5 : more cleanup #

Patch Set 6 : fix up windows build and copyrights #

Patch Set 7 : fixed up shared lib compile #

Unified diffs Side-by-side diffs Delta from patch set Stats (+446 lines, -471 lines) Patch
M remoting/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
M remoting/base/capture_data.h View 1 2 3 4 4 chunks +7 lines, -7 lines 0 comments Download
M remoting/base/capture_data.cc View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M remoting/base/codec_test.cc View 1 2 3 4 5 14 chunks +30 lines, -28 lines 0 comments Download
M remoting/base/decoder.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/base/encoder_row_based.h View 1 2 3 4 5 3 chunks +5 lines, -5 lines 0 comments Download
M remoting/base/encoder_row_based.cc View 1 2 3 4 5 4 chunks +12 lines, -9 lines 0 comments Download
M remoting/base/encoder_vp8.cc View 3 chunks +6 lines, -3 lines 0 comments Download
M remoting/base/types.h View 1 1 chunk +0 lines, -21 lines 0 comments Download
M remoting/base/util.h View 2 chunks +2 lines, -1 line 0 comments Download
M remoting/base/util.cc View 1 chunk +4 lines, -4 lines 0 comments Download
M remoting/host/capturer.h View 1 2 3 4 3 chunks +10 lines, -14 lines 0 comments Download
M remoting/host/capturer_fake.h View 1 2 3 4 1 chunk +9 lines, -8 lines 0 comments Download
M remoting/host/capturer_fake.cc View 1 2 3 3 chunks +8 lines, -8 lines 0 comments Download
M remoting/host/capturer_fake_ascii.h View 1 2 3 4 2 chunks +9 lines, -8 lines 0 comments Download
M remoting/host/capturer_fake_ascii.cc View 1 2 3 2 chunks +9 lines, -9 lines 0 comments Download
M remoting/host/capturer_helper.h View 1 2 3 4 5 6 2 chunks +15 lines, -26 lines 0 comments Download
M remoting/host/capturer_helper.cc View 1 2 3 4 5 6 3 chunks +12 lines, -27 lines 0 comments Download
M remoting/host/capturer_linux.cc View 1 2 3 4 12 chunks +55 lines, -54 lines 0 comments Download
M remoting/host/capturer_mac.cc View 1 2 3 4 12 chunks +50 lines, -46 lines 0 comments Download
M remoting/host/capturer_mac_unittest.cc View 1 6 chunks +20 lines, -20 lines 0 comments Download
M remoting/host/capturer_win.cc View 1 2 3 4 5 6 11 chunks +30 lines, -42 lines 0 comments Download
M remoting/host/differ.h View 1 2 3 4 2 chunks +16 lines, -15 lines 0 comments Download
M remoting/host/differ.cc View 1 2 3 4 4 chunks +10 lines, -9 lines 0 comments Download
M remoting/host/differ_unittest.cc View 1 2 3 24 chunks +96 lines, -69 lines 0 comments Download
M remoting/host/host_mock_objects.h View 1 2 3 4 1 chunk +3 lines, -3 lines 0 comments Download
M remoting/host/screen_recorder.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/screen_recorder_unittest.cc View 5 chunks +9 lines, -15 lines 0 comments Download
M remoting/host/x_server_pixel_buffer.h View 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/x_server_pixel_buffer.cc View 1 chunk +6 lines, -6 lines 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 5 chunks +2 lines, -7 lines 0 comments Download
M skia/ext/skia_utils_mac.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 8 (0 generated)
dmac
PTAL. Thakis, I added you due to change to skia/ext. Any reason why we were ...
9 years, 4 months ago (2011-08-05 23:29:15 UTC) #1
Nico
skia change lgtm
9 years, 4 months ago (2011-08-05 23:54:33 UTC) #2
Wez
http://codereview.chromium.org/7491070/diff/4001/remoting/base/codec_test.cc File remoting/base/codec_test.cc (right): http://codereview.chromium.org/7491070/diff/4001/remoting/base/codec_test.cc#newcode143 remoting/base/codec_test.cc:143: decoder_->GetUpdatedRects(&update_rects_); Shouldn't this change to GetUpdatedRegion()? http://codereview.chromium.org/7491070/diff/4001/remoting/base/codec_test.cc#newcode242 remoting/base/codec_test.cc:242: uint8** ...
9 years, 4 months ago (2011-08-08 20:49:34 UTC) #3
dmac
I think I dealt with all of these. http://codereview.chromium.org/7491070/diff/4001/remoting/base/codec_test.cc File remoting/base/codec_test.cc (right): http://codereview.chromium.org/7491070/diff/4001/remoting/base/codec_test.cc#newcode143 remoting/base/codec_test.cc:143: decoder_->GetUpdatedRects(&update_rects_); ...
9 years, 4 months ago (2011-08-10 20:30:35 UTC) #4
Wez
A few more nits, but otherwise LGTM. http://codereview.chromium.org/7491070/diff/11001/remoting/base/capture_data.cc File remoting/base/capture_data.cc (right): http://codereview.chromium.org/7491070/diff/11001/remoting/base/capture_data.cc#newcode20 remoting/base/capture_data.cc:20: dirty_region_(), nit: ...
9 years, 4 months ago (2011-08-10 22:05:43 UTC) #5
Wez
Oh, but please take a look at the comment regarding the IsFullScreen bug.
9 years, 4 months ago (2011-08-10 22:06:22 UTC) #6
Lambros
http://codereview.chromium.org/7491070/diff/11001/remoting/host/capturer_helper.cc File remoting/host/capturer_helper.cc (right): http://codereview.chromium.org/7491070/diff/11001/remoting/host/capturer_helper.cc#newcode40 remoting/host/capturer_helper.cc:40: // http://crbug.com/92346 On 2011/08/10 22:05:43, Wez wrote: > The ...
9 years, 4 months ago (2011-08-10 22:17:09 UTC) #7
Wez
9 years, 4 months ago (2011-08-10 22:19:59 UTC) #8
On 2011/08/10 22:17:09, Lambros wrote:
>
http://codereview.chromium.org/7491070/diff/11001/remoting/host/capturer_help...
> File remoting/host/capturer_helper.cc (right):
> 
>
http://codereview.chromium.org/7491070/diff/11001/remoting/host/capturer_help...
> remoting/host/capturer_helper.cc:40: // http://crbug.com/92346
> On 2011/08/10 22:05:43, Wez wrote:
> > The bug is introduced by this CL, though.  Can be fixed by testing
> > invalid_region.isComplex(), I think (returns true for 0 or 1 rectangle
> regions).
> 
> Drive-by: If you want to test whether |invalid_region_| is full-screen, why
not
> construct a temporary region with the screen rectangle, then compare for
> equality with |invalid_region| ?  Why mess with internals (bounds,
> rectangle-counting) when you don't have to? :)

A very good point...

Powered by Google App Engine
This is Rietveld 408576698