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

Issue 2796153002: ui: Replace a use of ExtractImageRep with a canvas SaveLayer (Closed)

Created:
3 years, 8 months ago by danakj
Modified:
3 years, 8 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina, miu+watch_chromium.org, enne (OOO), vmpstr, Peter Kasting, piman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ui: Replace a use of ExtractImageRep with a canvas SaveLayer This changes the code for drawing the tab changed indicator to use save layer in order to achieve its effect instead of making a CPU bitmap and drawing from that into the recording canvas. This defers the work until raster time, so it can be executed more efficiently (and on the GPU), and removes a use of ExtractImageRep so that it can go away soon. BUG=671433 Review-Url: https://codereview.chromium.org/2796153002 Cr-Commit-Position: refs/heads/master@{#462102} Committed: https://chromium.googlesource.com/chromium/src/+/073e4d7067e7af90e5faa0ef4adb19f3e8e4ded4

Patch Set 1 #

Total comments: 2

Patch Set 2 : tabindicator: constants-back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -14 lines) Patch
M chrome/browser/ui/views/tabs/tab.cc View 1 1 chunk +14 lines, -14 lines 0 comments Download

Messages

Total messages: 21 (13 generated)
danakj
Before: http://imgur.com/eosJ94P After: http://imgur.com/Dn0JSuC No indicator just for reference: http://imgur.com/wkPpiCn
3 years, 8 months ago (2017-04-04 20:10:02 UTC) #5
danakj
3 years, 8 months ago (2017-04-04 20:10:21 UTC) #6
sky
Assuming this produces the right results, and you tried RTL LGTM https://codereview.chromium.org/2796153002/diff/1/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): ...
3 years, 8 months ago (2017-04-04 22:02:41 UTC) #9
sky
On 2017/04/04 22:02:41, sky wrote: > Assuming this produces the right results, and you tried ...
3 years, 8 months ago (2017-04-04 22:03:47 UTC) #10
danakj
https://codereview.chromium.org/2796153002/diff/1/chrome/browser/ui/views/tabs/tab.cc File chrome/browser/ui/views/tabs/tab.cc (right): https://codereview.chromium.org/2796153002/diff/1/chrome/browser/ui/views/tabs/tab.cc#newcode1278 chrome/browser/ui/views/tabs/tab.cc:1278: const float kIndicatorCropRadius = 4.5f; On 2017/04/04 22:02:41, sky ...
3 years, 8 months ago (2017-04-04 22:10:44 UTC) #11
danakj
On 2017/04/04 22:10:44, danakj wrote: > https://codereview.chromium.org/2796153002/diff/1/chrome/browser/ui/views/tabs/tab.cc > File chrome/browser/ui/views/tabs/tab.cc (right): > > https://codereview.chromium.org/2796153002/diff/1/chrome/browser/ui/views/tabs/tab.cc#newcode1278 > ...
3 years, 8 months ago (2017-04-05 15:48:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2796153002/20001
3 years, 8 months ago (2017-04-05 15:49:16 UTC) #18
commit-bot: I haz the power
3 years, 8 months ago (2017-04-05 16:25:04 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/073e4d7067e7af90e5faa0ef4adb...

Powered by Google App Engine
This is Rietveld 408576698