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

Side by Side Diff: cc/surfaces/direct_compositor_frame_sink.cc

Issue 2402173002: cc: Get rid of PostSwapBuffersComplete. (Closed)
Patch Set: postswap: fix-blimp-unittest-post-swap-acks Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/test/fake_compositor_frame_sink.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/surfaces/direct_compositor_frame_sink.h" 5 #include "cc/surfaces/direct_compositor_frame_sink.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/compositor_frame_sink_client.h" 9 #include "cc/output/compositor_frame_sink_client.h"
10 #include "cc/surfaces/display.h" 10 #include "cc/surfaces/display.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 // This notification is not relevant to our client outside of tests. 138 // This notification is not relevant to our client outside of tests.
139 } 139 }
140 140
141 void DirectCompositorFrameSink::DisplayDidDrawAndSwap() { 141 void DirectCompositorFrameSink::DisplayDidDrawAndSwap() {
142 // This notification is not relevant to our client outside of tests. We 142 // This notification is not relevant to our client outside of tests. We
143 // unblock the client from DidDrawCallback() when the surface is going to 143 // unblock the client from DidDrawCallback() when the surface is going to
144 // be drawn. 144 // be drawn.
145 } 145 }
146 146
147 void DirectCompositorFrameSink::DidDrawCallback() { 147 void DirectCompositorFrameSink::DidDrawCallback() {
148 CompositorFrameSink::PostSwapBuffersComplete(); 148 client_->DidSwapBuffersComplete();
149 } 149 }
150 150
151 } // namespace cc 151 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/test/fake_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698