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

Issue 2001153002: Move inval dedup to Window for wider usages. (Closed)

Created:
4 years, 7 months ago by liyuqian
Modified:
4 years, 7 months ago
Reviewers:
jvanverth1, djsollen
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Move inval dedup to Window for wider usages. It turns out that the inval dedup is not just useful for Android. Hence we move it up to the Window level so more OSes such as Linux, Windows can also use it. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2001153002 Committed: https://skia.googlesource.com/skia/+/566c8e4a36c51cb24d8bb97cc71b3eb26737c012

Patch Set 1 #

Total comments: 3

Patch Set 2 : NoMutex #

Patch Set 3 : uncheckInval #

Patch Set 4 : Comment #

Total comments: 4

Patch Set 5 : Name #

Patch Set 6 : Include #

Patch Set 7 : Update Comments #

Patch Set 8 : Protected #

Total comments: 3

Patch Set 9 : inval #

Total comments: 3

Patch Set 10 : Update Comments Again #

Patch Set 11 : Improve Comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -33 lines) Patch
M tools/viewer/sk_app/Window.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +12 lines, -1 line 0 comments Download
M tools/viewer/sk_app/Window.cpp View 1 2 3 4 5 6 7 8 2 chunks +12 lines, -0 lines 0 comments Download
M tools/viewer/sk_app/android/Window_android.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -1 line 0 comments Download
M tools/viewer/sk_app/android/Window_android.cpp View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -2 lines 0 comments Download
M tools/viewer/sk_app/android/surface_glue_android.h View 1 2 3 4 5 6 7 3 chunks +0 lines, -8 lines 0 comments Download
M tools/viewer/sk_app/android/surface_glue_android.cpp View 1 2 3 4 5 6 7 8 5 chunks +3 lines, -19 lines 0 comments Download
M tools/viewer/sk_app/win/Window_win.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M tools/viewer/sk_app/win/Window_win.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (6 generated)
liyuqian
4 years, 7 months ago (2016-05-23 14:15:58 UTC) #4
jvanverth1
Just one comment: https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp File tools/viewer/sk_app/Window.cpp (right): https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp#newcode66 tools/viewer/sk_app/Window.cpp:66: SkAutoMutexAcquire ama(fMutex); How long does the ...
4 years, 7 months ago (2016-05-23 14:22:32 UTC) #5
jvanverth1
lgtm with removal of mutex
4 years, 7 months ago (2016-05-23 14:36:13 UTC) #6
liyuqian
Mutex removed. Please double check it and give me the second LGTM before I commit ...
4 years, 7 months ago (2016-05-23 14:40:36 UTC) #7
djsollen
https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp File tools/viewer/sk_app/Window.cpp (right): https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp#newcode67 tools/viewer/sk_app/Window.cpp:67: fIsContentInvalidated = false; putting this here won't work on ...
4 years, 7 months ago (2016-05-23 14:44:26 UTC) #8
liyuqian
Good catch! Revised. https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp File tools/viewer/sk_app/Window.cpp (right): https://codereview.chromium.org/2001153002/diff/1/tools/viewer/sk_app/Window.cpp#newcode67 tools/viewer/sk_app/Window.cpp:67: fIsContentInvalidated = false; On 2016/05/23 14:44:26, ...
4 years, 7 months ago (2016-05-23 14:58:24 UTC) #9
djsollen
https://codereview.chromium.org/2001153002/diff/60001/tools/viewer/sk_app/Window.h File tools/viewer/sk_app/Window.h (right): https://codereview.chromium.org/2001153002/diff/60001/tools/viewer/sk_app/Window.h#newcode35 tools/viewer/sk_app/Window.h:35: virtual void inval() = 0; make this protected https://codereview.chromium.org/2001153002/diff/60001/tools/viewer/sk_app/Window.h#newcode40 ...
4 years, 7 months ago (2016-05-23 15:22:42 UTC) #10
liyuqian
Name changed. Please see comments below. https://codereview.chromium.org/2001153002/diff/60001/tools/viewer/sk_app/Window.h File tools/viewer/sk_app/Window.h (right): https://codereview.chromium.org/2001153002/diff/60001/tools/viewer/sk_app/Window.h#newcode35 tools/viewer/sk_app/Window.h:35: virtual void inval() ...
4 years, 7 months ago (2016-05-23 15:49:25 UTC) #11
djsollen
I'm fine with not updating inval to onInval, but I do think that markInvalProcessed should ...
4 years, 7 months ago (2016-05-23 15:57:32 UTC) #12
liyuqian
Ok, I made markInvalProcessed protected. How about this?
4 years, 7 months ago (2016-05-23 16:10:21 UTC) #13
djsollen
I know I waffled on my decision to call the function onInval() vs inval(), but ...
4 years, 7 months ago (2016-05-23 16:48:51 UTC) #14
liyuqian
Ok, inval is now onInval https://codereview.chromium.org/2001153002/diff/140001/tools/viewer/sk_app/android/surface_glue_android.cpp File tools/viewer/sk_app/android/surface_glue_android.cpp (right): https://codereview.chromium.org/2001153002/diff/140001/tools/viewer/sk_app/android/surface_glue_android.cpp#newcode105 tools/viewer/sk_app/android/surface_glue_android.cpp:105: ((Window_android*)skiaAndroidApp->fWindow)->paintIfNeeded(); On 2016/05/23 16:48:51, ...
4 years, 7 months ago (2016-05-23 17:00:38 UTC) #15
djsollen
lgtm with nits https://codereview.chromium.org/2001153002/diff/160001/tools/viewer/sk_app/Window.h File tools/viewer/sk_app/Window.h (right): https://codereview.chromium.org/2001153002/diff/160001/tools/viewer/sk_app/Window.h#newcode31 tools/viewer/sk_app/Window.h:31: // Check if the current window ...
4 years, 7 months ago (2016-05-23 17:06:48 UTC) #16
liyuqian
Comments updated. https://codereview.chromium.org/2001153002/diff/160001/tools/viewer/sk_app/Window.h File tools/viewer/sk_app/Window.h (right): https://codereview.chromium.org/2001153002/diff/160001/tools/viewer/sk_app/Window.h#newcode170 tools/viewer/sk_app/Window.h:170: // Make sure that either onPaint or ...
4 years, 7 months ago (2016-05-23 17:29:51 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2001153002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2001153002/200001
4 years, 7 months ago (2016-05-23 17:30:03 UTC) #20
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 17:52:38 UTC) #22
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://skia.googlesource.com/skia/+/566c8e4a36c51cb24d8bb97cc71b3eb26737c012

Powered by Google App Engine
This is Rietveld 408576698