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

Issue 11369051: cc: Remove WebCore::FloatRect use from the compositor. (Closed)

Created:
8 years, 1 month ago by danakj
Modified:
8 years, 1 month ago
Reviewers:
enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

cc: Remove WebCore::FloatRect use from the compositor. This replaces the last cases of FloatRect with gfx::RectF. It depends on the IsExpressibleAsRect() method in https://codereview.chromium.org/11364054/ and removes the stubs as well! Covered by existing tests. R=enne BUG=147395

Patch Set 1 #

Patch Set 2 : #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -99 lines) Patch
M cc/cc.gyp View 2 chunks +0 lines, -2 lines 1 comment Download
M cc/gl_renderer.cc View 2 chunks +1 line, -2 lines 0 comments Download
M cc/occlusion_tracker.cc View 3 chunks +2 lines, -3 lines 2 comments Download
D cc/stubs/FloatRect.h View 1 chunk +0 lines, -6 lines 0 comments Download
D cc/stubs/float_rect.h View 1 chunk +0 lines, -73 lines 0 comments Download
M cc/test/layer_test_common.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M webkit/compositor_bindings/web_content_layer_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/compositor_bindings/webcore_convert.h View 2 chunks +0 lines, -3 lines 0 comments Download
M webkit/compositor_bindings/webcore_convert.cc View 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
danakj
Present for you!
8 years, 1 month ago (2012-11-02 18:03:01 UTC) #1
enne (OOO)
lgtm http://codereview.chromium.org/11369051/diff/1001/cc/cc.gyp File cc/cc.gyp (left): http://codereview.chromium.org/11369051/diff/1001/cc/cc.gyp#oldcode260 cc/cc.gyp:260: 'stubs/FloatRect.h', \o/ http://codereview.chromium.org/11369051/diff/1001/cc/occlusion_tracker.cc File cc/occlusion_tracker.cc (right): http://codereview.chromium.org/11369051/diff/1001/cc/occlusion_tracker.cc#newcode136 cc/occlusion_tracker.cc:136: ...
8 years, 1 month ago (2012-11-02 18:05:51 UTC) #2
danakj
ty :) http://codereview.chromium.org/11369051/diff/1001/cc/occlusion_tracker.cc File cc/occlusion_tracker.cc (right): http://codereview.chromium.org/11369051/diff/1001/cc/occlusion_tracker.cc#newcode136 cc/occlusion_tracker.cc:136: gfx::Rect transformedRect = gfx::ToEnclosedRect(MathUtil::mapClippedRect(transform, gfx::RectF(gfx::Rect(cc::IntRect(rects[i]))))); On 2012/11/02 ...
8 years, 1 month ago (2012-11-02 18:08:31 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/11369051/1001
8 years, 1 month ago (2012-11-02 19:36:54 UTC) #4
commit-bot: I haz the power
Failed to apply patch for cc/cc.gyp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
8 years, 1 month ago (2012-11-02 19:37:07 UTC) #5
danakj
On 2012/11/02 18:05:51, enne wrote: > lgtm > > http://codereview.chromium.org/11369051/diff/1001/cc/cc.gyp > File cc/cc.gyp (left): > ...
8 years, 1 month ago (2012-11-02 20:13:07 UTC) #6
enne (OOO)
On 2012/11/02 20:13:07, danakj wrote: > Wdyt of combining this with https://codereview.chromium.org/11361072/ ? Let me ...
8 years, 1 month ago (2012-11-02 20:27:42 UTC) #7
danakj
8 years, 1 month ago (2012-11-02 20:34:19 UTC) #8
On 2012/11/02 20:27:42, enne wrote:
> On 2012/11/02 20:13:07, danakj wrote: of combining this with
https://codereview.chromium.org/11361072/ ?
> 
> Let me review them separately, and you can land in any way that makes the most
> sense to you.
> 
> You could also just do gfx::RectF(rects[i].x(), rects[i].y(),
rects[i].width(),
> rects[i].height()), and I suspect that would work too?

True, it would!

Powered by Google App Engine
This is Rietveld 408576698