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

Issue 23767011: cc: Always use SetNeedsBeginFrame to request the next BeginFrame (Closed)

Created:
7 years, 3 months ago by brianderson
Modified:
7 years, 3 months ago
Reviewers:
danakj, Sami, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, nduca, boliu, joth, jdduke (slow), dnicoara
Base URL:
http://git.chromium.org/chromium/src.git@pollForDrawTriggers
Visibility:
Public.

Description

cc: Always use SetNeedsBeginFrame to request the next BeginFrame This avoids relying on SwapBuffers to implicitly trigger the next BeginFrame. Only a single code path is used to request the next BeginFrame now: SetNeedsBeginFrame(true). This avoids issues where OutputSurface subclasses might not call OutputSurface::DidSwap() when they need to or when we early out a swap request and don't actually swap anything. BUG=289755

Patch Set 1 #

Total comments: 7

Patch Set 2 : Simplify. Fix unit tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -37 lines) Patch
cc/output/output_surface.cc View 1 chunk +0 lines, -1 line 0 comments Download
cc/output/output_surface_unittest.cc View 1 3 chunks +6 lines, -1 line 0 comments Download
cc/scheduler/scheduler.h View 1 1 chunk +0 lines, -1 line 0 comments Download
cc/scheduler/scheduler.cc View 1 5 chunks +10 lines, -28 lines 0 comments Download
cc/scheduler/scheduler_state_machine.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
cc/scheduler/scheduler_unittest.cc View 1 8 chunks +54 lines, -6 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
brianderson
Should have done this a long time ago.
7 years, 3 months ago (2013-09-12 01:35:38 UTC) #1
brianderson
7 years, 3 months ago (2013-09-12 01:36:12 UTC) #2
brianderson
Daniel, if you are trying this out, note that it might have dependencies on: https://codereview.chromium.org/23463014 ...
7 years, 3 months ago (2013-09-12 01:47:45 UTC) #3
danakj
https://codereview.chromium.org/23767011/diff/1/cc/output/output_surface_unittest.cc File cc/output/output_surface_unittest.cc (right): https://codereview.chromium.org/23767011/diff/1/cc/output/output_surface_unittest.cc#newcode213 cc/output/output_surface_unittest.cc:213: // DidSwapBuffers should clear the pending BeginFrame. comment should ...
7 years, 3 months ago (2013-09-12 16:53:58 UTC) #4
brianderson
https://codereview.chromium.org/23767011/diff/1/cc/output/output_surface_unittest.cc File cc/output/output_surface_unittest.cc (right): https://codereview.chromium.org/23767011/diff/1/cc/output/output_surface_unittest.cc#newcode213 cc/output/output_surface_unittest.cc:213: // DidSwapBuffers should clear the pending BeginFrame. On 2013/09/12 ...
7 years, 3 months ago (2013-09-12 18:46:43 UTC) #5
danakj
I have some more questions as I don't really know the new BeginFrame flow well ...
7 years, 3 months ago (2013-09-12 20:57:29 UTC) #6
brianderson
https://codereview.chromium.org/23767011/diff/1/cc/scheduler/scheduler.cc File cc/scheduler/scheduler.cc (right): https://codereview.chromium.org/23767011/diff/1/cc/scheduler/scheduler.cc#newcode177 cc/scheduler/scheduler.cc:177: has_pending_begin_frame_ = true; On 2013/09/12 20:57:29, danakj wrote: > ...
7 years, 3 months ago (2013-09-12 21:54:21 UTC) #7
brianderson
7 years, 3 months ago (2013-09-12 23:26:09 UTC) #8
Ran into the "missing base files" error, so I am closing this issue and
continuing the review here:
https://codereview.chromium.org/23451055

Powered by Google App Engine
This is Rietveld 408576698