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

Issue 2174173002: current program can be null in ES2/ES3 contexts. (Closed)

Created:
4 years, 5 months ago by Zhenyao Mo
Modified:
4 years, 4 months ago
Reviewers:
yunchao, piman
CC:
chromium-reviews, piman+watch_chromium.org, yunchao
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

current program can be null in ES2/ES3 contexts. They are only required to be non null in WebGL. This also did some clean up and a minor optimization. BUG=630802 TEST=fuzzer case in the bug R=piman@chromium.org CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/14ef40159115ca5059907835a34bcd1667af7631 Cr-Commit-Position: refs/heads/master@{#407659}

Patch Set 1 #

Total comments: 11

Patch Set 2 : update per piman review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -93 lines) Patch
M gpu/command_buffer/service/context_state.h View 2 chunks +14 lines, -18 lines 0 comments Download
M gpu/command_buffer/service/context_state.cc View 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 2 chunks +29 lines, -17 lines 0 comments Download
M gpu/command_buffer/service/program_manager.h View 3 chunks +10 lines, -15 lines 0 comments Download
M gpu/command_buffer/service/program_manager.cc View 1 3 chunks +17 lines, -17 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.h View 2 chunks +6 lines, -14 lines 0 comments Download
M gpu/command_buffer/service/vertex_attrib_manager.cc View 1 2 chunks +7 lines, -11 lines 0 comments Download

Messages

Total messages: 18 (11 generated)
Zhenyao Mo
piman: PTAL https://codereview.chromium.org/2174173002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/2174173002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode9140 gpu/command_buffer/service/gles2_cmd_decoder.cc:9140: return true; This is actually the crash ...
4 years, 5 months ago (2016-07-23 16:10:40 UTC) #2
yunchao
I am not qualified to review your patch, Zhenyao. But the code LGTM. https://codereview.chromium.org/2174173002/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File ...
4 years, 5 months ago (2016-07-24 04:52:13 UTC) #9
piman
LGTM + couple nits. https://codereview.chromium.org/2174173002/diff/1/gpu/command_buffer/service/program_manager.cc File gpu/command_buffer/service/program_manager.cc (right): https://codereview.chromium.org/2174173002/diff/1/gpu/command_buffer/service/program_manager.cc#newcode314 gpu/command_buffer/service/program_manager.cc:314: packed_size += (manager_->max_vertex_attribs() % 16 ...
4 years, 4 months ago (2016-07-25 20:04:04 UTC) #10
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/2174173002/20001
4 years, 4 months ago (2016-07-25 23:53:34 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-26 00:50:42 UTC) #15
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/14ef40159115ca5059907835a34bcd1667af7631 Cr-Commit-Position: refs/heads/master@{#407659}
4 years, 4 months ago (2016-07-26 00:52:57 UTC) #17
Mark P
4 years, 4 months ago (2016-07-26 04:43:05 UTC) #18
Message was sent while issue was closed.
A revert of this CL (patchset #2 id:20001) has been created in
https://codereview.chromium.org/2181193002/ by mpearson@chromium.org.

The reason for reverting is: Caused webkit test failure on WebKit Win7 (dbg)
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win7%20%28dbg%...

unexpected_failures:
printing/webgl-oversized-printing.html
virtual/threaded/printing/webgl-oversized-printing.html

https://storage.googleapis.com/chromium-layout-test-archives/WebKit_Win7__dbg...

---
---
E:\b\rr\tmpymgexl\w\layout-test-results\printing/webgl-oversized-printing-expected.txt
+++
E:\b\rr\tmpymgexl\w\layout-test-results\printing/webgl-oversized-printing-actual.txt
@@ -1,5 +1,5 @@
-PASS successfullyParsed is true
+CONSOLE ERROR: line 13: Uncaught TypeError: Cannot read property 'clearColor'
of null
+FAIL successfullyParsed should be true. Was false.
 
 TEST COMPLETE
-PASS Printed without crashing.
---

---
---
E:\b\rr\tmpymgexl\w\layout-test-results\virtual/threaded/printing/webgl-oversized-printing-expected.txt
+++
E:\b\rr\tmpymgexl\w\layout-test-results\virtual/threaded/printing/webgl-oversized-printing-actual.txt
@@ -1,5 +1,5 @@
-PASS successfullyParsed is true
+CONSOLE ERROR: line 13: Uncaught TypeError: Cannot read property 'clearColor'
of null
+FAIL successfullyParsed should be true. Was false.
 
 TEST COMPLETE
-PASS Printed without crashing.
---
.

Powered by Google App Engine
This is Rietveld 408576698