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

Issue 2877673005: VR: Avoiding regeneration of RenderText objects for texture rendering (Closed)

Created:
3 years, 7 months ago by acondor_
Modified:
3 years, 7 months ago
Reviewers:
mthiesse, cjgrant
CC:
chromium-reviews, feature-vr-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

VR: Avoiding regeneration of RenderText objects for texture rendering - Code is based in gfx::Canvas::DrawStringRectWithFlags, but tailored for VR needs and instead of drawing, it returns a list of RenderText. - For textures that require text measurement, both the measurement and drawing is done in a single pass. - Being the text layout the most expensive operation for texture rendering, times are reduced to almost half. BUG=715591 Review-Url: https://codereview.chromium.org/2877673005 Cr-Commit-Position: refs/heads/master@{#471503} Committed: https://chromium.googlesource.com/chromium/src/+/b40dc0c1f2fea886a3184e9c3265c9d9f8d7275f

Patch Set 1 #

Total comments: 18

Patch Set 2 : address suggestions #

Total comments: 1

Patch Set 3 : removing unnecessary comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -62 lines) Patch
M chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc View 1 3 chunks +22 lines, -26 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/insecure_content_transient_texture.cc View 2 chunks +17 lines, -20 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.h View 1 2 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/ui_texture.cc View 1 2 3 chunks +96 lines, -0 lines 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.h View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/android/vr_shell/textures/url_bar_texture.cc View 1 5 chunks +20 lines, -15 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (10 generated)
acondor_
PTAL
3 years, 7 months ago (2017-05-11 20:55:59 UTC) #2
cjgrant
https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode43 chrome/browser/android/vr_shell/textures/ui_texture.cc:43: if (flags & UiTexture::TEXT_ALIGN_LEFT) It looks like RenderText defaults ...
3 years, 7 months ago (2017-05-11 21:15:41 UTC) #4
acondor_
https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode43 chrome/browser/android/vr_shell/textures/ui_texture.cc:43: if (flags & UiTexture::TEXT_ALIGN_LEFT) On 2017/05/11 21:15:40, cjgrant wrote: ...
3 years, 7 months ago (2017-05-11 22:26:49 UTC) #5
mthiesse
https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc File chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc (right): https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc#newcode60 chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc:60: sk_canvas->drawRoundRect(SkRect::MakeWH(size_.width(), size_.height()), Why the change from canvas->DrawRoundRect? https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc#newcode66 chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc:66: ...
3 years, 7 months ago (2017-05-12 01:14:38 UTC) #7
acondor_
https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc File chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc (right): https://codereview.chromium.org/2877673005/diff/1/chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc#newcode60 chrome/browser/android/vr_shell/textures/insecure_content_permanent_texture.cc:60: sk_canvas->drawRoundRect(SkRect::MakeWH(size_.width(), size_.height()), On 2017/05/12 01:14:38, mthiesse wrote: > Why ...
3 years, 7 months ago (2017-05-12 14:54:23 UTC) #8
mthiesse
lgtm https://codereview.chromium.org/2877673005/diff/20001/chrome/browser/android/vr_shell/textures/ui_texture.cc File chrome/browser/android/vr_shell/textures/ui_texture.cc (right): https://codereview.chromium.org/2877673005/diff/20001/chrome/browser/android/vr_shell/textures/ui_texture.cc#newcode136 chrome/browser/android/vr_shell/textures/ui_texture.cc:136: // bringing text back to the left. The ...
3 years, 7 months ago (2017-05-12 19:33:00 UTC) #9
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/2877673005/40001
3 years, 7 months ago (2017-05-12 19:37:13 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/292832)
3 years, 7 months ago (2017-05-12 22:34:36 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/2877673005/40001
3 years, 7 months ago (2017-05-12 22:50:12 UTC) #16
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/2877673005/40001
3 years, 7 months ago (2017-05-12 22:57:39 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 00:14:45 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/b40dc0c1f2fea886a3184e9c3265...

Powered by Google App Engine
This is Rietveld 408576698