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

Issue 1131723002: Add ContextProvider::InvalidateGrContext to reset GL state in GrContext (Closed)

Created:
5 years, 7 months ago by CodeByThePound
Modified:
5 years, 2 months ago
Reviewers:
jamesr, sky, codebythepound, boliu, piman, danakj, blundell
CC:
chromium-reviews, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add ContextProvider::InvalidateGrContext to reset GL state in GrContext If rendering code that is shared with GrContext changes any GL state, then skia caches need to be notified. This adds InvalidateGrContext() method that will call private pure virtual method. InvalidateGrContext default argument will clear all state in GrContext. Updated classes that derive from ContextProvider. R=piman@chromium.org BUG= Committed: https://crrev.com/c16f8dcdc00218681934a1425f53c9badefbe01a Cr-Commit-Position: refs/heads/master@{#329255}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Changed to pure virtual InvalidateGrContext #

Total comments: 1

Patch Set 3 : Fixed Headers #

Patch Set 4 : Updating to latest master. #

Patch Set 5 : fixed minor formatting issue #

Patch Set 6 : Updated all tests that use ContextProvider. #

Patch Set 7 : Android updates. #

Patch Set 8 : More android fixes. #

Patch Set 9 : More android and mojo fixes. #

Patch Set 10 : fix int/uint typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -0 lines) Patch
M android_webview/browser/aw_render_thread_context_provider.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/browser/aw_render_thread_context_provider.cc View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M cc/output/context_provider.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/test_context_provider.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_context_provider.cc View 1 2 3 4 5 1 chunk +8 lines, -0 lines 1 comment Download
M cc/test/test_in_process_context_provider.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/test_in_process_context_provider.cc View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M components/surfaces/context_provider_mojo.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M components/surfaces/context_provider_mojo.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/android/in_process/context_provider_in_process.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/android/in_process/context_provider_in_process.cc View 1 2 3 4 5 6 7 2 chunks +9 lines, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download
M mojo/cc/context_provider_mojo.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M mojo/cc/context_provider_mojo.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M ui/compositor/test/in_process_context_provider.cc View 1 2 3 4 5 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 65 (29 generated)
CodeByThePound
5 years, 7 months ago (2015-05-06 21:52:23 UTC) #1
CodeByThePound
5 years, 7 months ago (2015-05-06 21:54:05 UTC) #2
danakj
ContextProvider::GrContext() -> GrContext::resetContext() ?
5 years, 7 months ago (2015-05-06 22:02:06 UTC) #4
piman
https://codereview.chromium.org/1131723002/diff/1/cc/output/context_provider.cc File cc/output/context_provider.cc (right): https://codereview.chromium.org/1131723002/diff/1/cc/output/context_provider.cc#newcode15 cc/output/context_provider.cc:15: DoInvalidateGrContext(state); Why this? Instead you can have each derived ...
5 years, 7 months ago (2015-05-06 22:03:40 UTC) #5
piman
On Wed, May 6, 2015 at 3:02 PM, <danakj@chromium.org> wrote: > ContextProvider::GrContext() -> GrContext::resetContext() ? ...
5 years, 7 months ago (2015-05-06 22:04:54 UTC) #6
CodeByThePound
https://codereview.chromium.org/1131723002/diff/1/cc/output/context_provider.cc File cc/output/context_provider.cc (right): https://codereview.chromium.org/1131723002/diff/1/cc/output/context_provider.cc#newcode15 cc/output/context_provider.cc:15: DoInvalidateGrContext(state); On 2015/05/06 22:03:40, piman (Very slow to review) ...
5 years, 7 months ago (2015-05-06 22:27:55 UTC) #7
CodeByThePound
5 years, 7 months ago (2015-05-07 00:58:52 UTC) #8
piman
LGTM+nit https://codereview.chromium.org/1131723002/diff/20001/cc/output/context_provider.h File cc/output/context_provider.h (right): https://codereview.chromium.org/1131723002/diff/20001/cc/output/context_provider.h#newcode12 cc/output/context_provider.h:12: #include "third_party/skia/include/gpu/GrContext.h" nit: you shouldn't need this
5 years, 7 months ago (2015-05-07 01:07:08 UTC) #9
CodeByThePound
Added/removed headers. Added more info to InvalidateGrContext().
5 years, 7 months ago (2015-05-07 16:02:59 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/40001
5 years, 7 months ago (2015-05-07 19:21:51 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_32_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_32_ng/builds/50596) ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 7 months ago (2015-05-07 19:27:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/80001
5 years, 7 months ago (2015-05-08 01:15:41 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/86573)
5 years, 7 months ago (2015-05-08 01:29:44 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/100001
5 years, 7 months ago (2015-05-08 19:19:43 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/14440)
5 years, 7 months ago (2015-05-08 19:52:34 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/120001
5 years, 7 months ago (2015-05-08 20:31:10 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_android_rel_ng/builds/20972)
5 years, 7 months ago (2015-05-08 22:33:20 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/140001
5 years, 7 months ago (2015-05-08 23:39:54 UTC) #33
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_compile_dbg/builds/14594) linux_android_rel_ng on ...
5 years, 7 months ago (2015-05-09 01:22:56 UTC) #35
CodeByThePound
Can someone explain how to build android locally?
5 years, 7 months ago (2015-05-09 02:46:19 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/160001
5 years, 7 months ago (2015-05-09 19:27:08 UTC) #39
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_TIMED_OUT, no build URL) ...
5 years, 7 months ago (2015-05-09 23:31:22 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/160001
5 years, 7 months ago (2015-05-10 07:06:09 UTC) #43
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 7 months ago (2015-05-10 16:40:57 UTC) #45
CodeByThePound
Added reviewers for mojo and android. Please review. Thanks
5 years, 7 months ago (2015-05-11 00:52:07 UTC) #47
boliu
android_webview lgtm
5 years, 7 months ago (2015-05-11 15:36:53 UTC) #48
piman
5 years, 7 months ago (2015-05-11 19:35:31 UTC) #51
jamesr
I'm not an OWNER of any parts of this patch other than cc, AFAIK, but ...
5 years, 7 months ago (2015-05-11 19:38:34 UTC) #52
piman
+sky for mojo/cc
5 years, 7 months ago (2015-05-11 19:47:26 UTC) #54
sky
LGTM
5 years, 7 months ago (2015-05-11 20:19:05 UTC) #55
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/160001
5 years, 7 months ago (2015-05-11 20:20:53 UTC) #57
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/87538)
5 years, 7 months ago (2015-05-11 20:51:18 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1131723002/180001
5 years, 7 months ago (2015-05-11 21:27:04 UTC) #62
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 7 months ago (2015-05-11 22:29:20 UTC) #63
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/c16f8dcdc00218681934a1425f53c9badefbe01a Cr-Commit-Position: refs/heads/master@{#329255}
5 years, 7 months ago (2015-05-11 22:30:24 UTC) #64
danakj
5 years, 2 months ago (2015-10-13 22:55:54 UTC) #65
Message was sent while issue was closed.
https://codereview.chromium.org/1131723002/diff/180001/cc/test/test_context_p...
File cc/test/test_context_provider.cc (right):

https://codereview.chromium.org/1131723002/diff/180001/cc/test/test_context_p...
cc/test/test_context_provider.cc:120: gr_context_.get()->resetContext(state);
foo_.get()->bar() should be written foo_->bar()

Powered by Google App Engine
This is Rietveld 408576698