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

Issue 23892022: 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, epenner, Sami, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org, nduca, boliu, js, dnicoara
Base URL:
http://git.chromium.org/chromium/src.git@master
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: 4

Patch Set 2 : rename begin_frame_pending_; update swap comment; #

Total comments: 1

Patch Set 3 : speling #

Patch Set 4 : rebase on epenner's patch #

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

Messages

Total messages: 8 (0 generated)
brianderson
7 years, 3 months ago (2013-09-13 01:37:20 UTC) #1
enne (OOO)
https://codereview.chromium.org/23892022/diff/1/cc/output/output_surface.cc File cc/output/output_surface.cc (left): https://codereview.chromium.org/23892022/diff/1/cc/output/output_surface.cc#oldcode195 cc/output/output_surface.cc:195: begin_frame_pending_ = false; Pardon my ongoing confusion, but I ...
7 years, 3 months ago (2013-09-13 17:48:44 UTC) #2
brianderson
https://codereview.chromium.org/23892022/diff/1/cc/output/output_surface.cc File cc/output/output_surface.cc (left): https://codereview.chromium.org/23892022/diff/1/cc/output/output_surface.cc#oldcode195 cc/output/output_surface.cc:195: begin_frame_pending_ = false; On 2013/09/13 17:48:44, enne wrote: > ...
7 years, 3 months ago (2013-09-13 18:24:45 UTC) #3
brianderson
ptal
7 years, 3 months ago (2013-09-13 18:37:43 UTC) #4
enne (OOO)
lgtm https://codereview.chromium.org/23892022/diff/12001/cc/scheduler/scheduler_state_machine.cc File cc/scheduler/scheduler_state_machine.cc (right): https://codereview.chromium.org/23892022/diff/12001/cc/scheduler/scheduler_state_machine.cc#newcode746 cc/scheduler/scheduler_state_machine.cc:746: // at an innpportune time, delaying the next ...
7 years, 3 months ago (2013-09-13 18:39:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/brianderson@chromium.org/23892022/19001
7 years, 3 months ago (2013-09-13 18:43:50 UTC) #6
brianderson
This conflicts with epenner's patch in: https://codereview.chromium.org/23495022/ I'm going to go ahead and rebase my ...
7 years, 3 months ago (2013-09-13 19:51:40 UTC) #7
brianderson
7 years, 3 months ago (2013-09-13 20:15:56 UTC) #8
Base files missing (again again again!)
Rebased patch here:
https://codereview.chromium.org/23498035

Powered by Google App Engine
This is Rietveld 408576698