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

Issue 568343002: Removed a few manual roundrect path creations (Closed)

Created:
6 years, 3 months ago by hendrikw
Modified:
6 years, 3 months ago
Reviewers:
danakj, sky
CC:
chromium-reviews, tfarina, alicet1, msw+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

There are several places where we create round rect paths and then draw the path to the canvas instead of using the canvas's built in round rect function. Changing these to the canvas round rect could allow skia to optimize their drawing. This change switches the status bubble to the canvas round rect. Committed: https://crrev.com/60dea7f0be1c234f3978679cf438d43b4e9ea04c Cr-Commit-Position: refs/heads/master@{#295095}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Change variable names #

Total comments: 2

Patch Set 3 : Address reviewer comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -58 lines) Patch
M chrome/browser/ui/views/status_bubble_views.cc View 1 2 2 chunks +24 lines, -50 lines 0 comments Download
M ui/views/bubble/bubble_border.cc View 1 chunk +1 line, -3 lines 0 comments Download
M ui/views/bubble/tray_bubble_view.cc View 2 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
hendrikw
PTAL, Thanks!!
6 years, 3 months ago (2014-09-15 17:46:35 UTC) #2
hendrikw
Hi, PTAL, thanks!
6 years, 3 months ago (2014-09-15 17:48:35 UTC) #4
danakj
https://codereview.chromium.org/568343002/diff/1/ui/gfx/canvas.h File ui/gfx/canvas.h (right): https://codereview.chromium.org/568343002/diff/1/ui/gfx/canvas.h#newcode266 ui/gfx/canvas.h:266: int radTL, style: rad_top_left
6 years, 3 months ago (2014-09-15 17:49:52 UTC) #5
hendrikw
Updated the variable names, thanks!
6 years, 3 months ago (2014-09-15 17:59:06 UTC) #6
sky
https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc#newcode394 chrome/browser/ui/views/status_bubble_views.cc:394: canvas->DrawRoundRect(rect, radTL, radTR, radBL, radBR, shadow_paint); This seems to ...
6 years, 3 months ago (2014-09-15 19:11:18 UTC) #7
hendrikw
On 2014/09/15 19:11:18, sky wrote: > https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc > File chrome/browser/ui/views/status_bubble_views.cc (right): > > https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc#newcode394 > ...
6 years, 3 months ago (2014-09-15 19:51:23 UTC) #8
sky
https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc File chrome/browser/ui/views/status_bubble_views.cc (right): https://codereview.chromium.org/568343002/diff/20001/chrome/browser/ui/views/status_bubble_views.cc#newcode394 chrome/browser/ui/views/status_bubble_views.cc:394: canvas->DrawRoundRect(rect, radTL, radTR, radBL, radBR, shadow_paint); On 2014/09/15 19:11:17, ...
6 years, 3 months ago (2014-09-15 21:51:08 UTC) #9
hendrikw
Oh, I see, a const function that returns a non-const pointer to the internal implementation ...
6 years, 3 months ago (2014-09-16 13:42:50 UTC) #10
sky
On 2014/09/16 13:42:50, Hendrik wrote: > Oh, I see, a const function that returns a ...
6 years, 3 months ago (2014-09-16 16:37:35 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568343002/40001
6 years, 3 months ago (2014-09-16 16:39:39 UTC) #13
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 782ad076293a24c86d7e9386c387fdbb89c845a3
6 years, 3 months ago (2014-09-16 17:38:21 UTC) #14
commit-bot: I haz the power
6 years, 3 months ago (2014-09-16 17:39:47 UTC) #15
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/60dea7f0be1c234f3978679cf438d43b4e9ea04c
Cr-Commit-Position: refs/heads/master@{#295095}

Powered by Google App Engine
This is Rietveld 408576698