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

Issue 2115493004: Make sure RecordingImageBufferSurface's current frame is valid (Closed)

Created:
4 years, 5 months ago by xidachen
Modified:
4 years, 5 months ago
Reviewers:
Justin Novosad
CC:
chromium-reviews, krit, pdr+graphicswatchlist_chromium.org, drott+blinkwatch_chromium.org, blink-reviews-platform-graphics_chromium.org, dshwang, jbroman, Rik, f(malita), asvitkine+watch_chromium.org, blink-reviews, Stephen Chennney, ajuma+watch_chromium.org, danakj+watch_chromium.org, rwlbuis
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make sure RecordingImageBufferSurface's current frame is valid The "FallbackReasonUnknown" should not happen. Right now it could still occur in RecordingImageBufferSurface::finalizeFrameInternal when the m_currentFrame is null (theoretically). In this CL, we change ASSERT to CHECK, to make sure that the m_currentFrame is never null in the finalizeFrameInternal() method. BUG=585578 Committed: https://crrev.com/9c8483972fea54016b0cf05e5e50fb8cba47248d Cr-Commit-Position: refs/heads/master@{#403707}

Patch Set 1 #

Total comments: 4

Patch Set 2 : change to CHECK #

Total comments: 4

Patch Set 3 : comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp View 1 2 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 23 (8 generated)
xidachen
PTAL
4 years, 5 months ago (2016-07-04 13:42:21 UTC) #2
Justin Novosad
https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode274 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:274: *fallbackReason = FallbackReasonCurrentFrameNull; I don't think this is right. ...
4 years, 5 months ago (2016-07-04 14:01:05 UTC) #3
xidachen
https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode274 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:274: *fallbackReason = FallbackReasonCurrentFrameNull; On 2016/07/04 14:01:05, Justin Novosad wrote: ...
4 years, 5 months ago (2016-07-04 14:06:36 UTC) #4
Justin Novosad
https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode274 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:274: *fallbackReason = FallbackReasonCurrentFrameNull; On 2016/07/04 14:06:36, xidachen wrote: > ...
4 years, 5 months ago (2016-07-04 14:16:57 UTC) #5
xidachen
https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/1/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode274 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:274: *fallbackReason = FallbackReasonCurrentFrameNull; On 2016/07/04 14:16:57, Justin Novosad wrote: ...
4 years, 5 months ago (2016-07-04 14:36:37 UTC) #8
Justin Novosad
https://codereview.chromium.org/2115493004/diff/20001/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/20001/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode261 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:261: ASSERT(!m_fallbackSurface); I meant this one. https://codereview.chromium.org/2115493004/diff/20001/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode274 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:274: return m_currentFrame.get(); ...
4 years, 5 months ago (2016-07-04 14:38:55 UTC) #9
xidachen
https://codereview.chromium.org/2115493004/diff/20001/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp File third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp (right): https://codereview.chromium.org/2115493004/diff/20001/third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp#newcode261 third_party/WebKit/Source/platform/graphics/RecordingImageBufferSurface.cpp:261: ASSERT(!m_fallbackSurface); On 2016/07/04 14:38:55, Justin Novosad wrote: > I ...
4 years, 5 months ago (2016-07-04 14:43:36 UTC) #10
xidachen
4 years, 5 months ago (2016-07-04 14:43:37 UTC) #11
Justin Novosad
On 2016/07/04 14:43:37, xidachen wrote: lgtm
4 years, 5 months ago (2016-07-04 17:35:44 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2115493004/40001
4 years, 5 months ago (2016-07-04 17:36:51 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-04 18:48:06 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/2115493004/40001
4 years, 5 months ago (2016-07-04 18:50:15 UTC) #18
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-04 18:54:05 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-04 18:54:07 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-04 18:56:05 UTC) #23
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/9c8483972fea54016b0cf05e5e50fb8cba47248d
Cr-Commit-Position: refs/heads/master@{#403707}

Powered by Google App Engine
This is Rietveld 408576698