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

Unified Diff: cc/test/layer_tree_test.cc

Issue 2317493003: cc: Toward merging DrawFrame and SwapBuffers in DelegatingRenderer. (Closed)
Patch Set: merge-draw-swap Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/layer_tree_test.cc
diff --git a/cc/test/layer_tree_test.cc b/cc/test/layer_tree_test.cc
index 6bd79e5615247fe68e7d235710cbe98ad870e630..812859359cbfcc07594e156afcbc2f02f6b03cdc 100644
--- a/cc/test/layer_tree_test.cc
+++ b/cc/test/layer_tree_test.cc
@@ -183,9 +183,10 @@ class LayerTreeHostImplForTesting : public LayerTreeHostImpl {
return test_hooks_->PrepareToDrawOnThread(this, frame, draw_result);
}
- void DrawLayers(FrameData* frame) override {
- LayerTreeHostImpl::DrawLayers(frame);
+ bool SwapBuffers(const FrameData& frame) override {
+ bool r = LayerTreeHostImpl::SwapBuffers(frame);
enne (OOO) 2016/09/07 18:05:52 I know swap is going to go away, but why does Swap
danakj 2016/09/07 18:28:12 What's happening is the frame is being given to th
enne (OOO) 2016/09/07 18:38:08 I figured that this was safe to do in the current
danakj 2016/09/07 18:42:16 Well, usually TestHooks happen *after* LTHI does s
enne (OOO) 2016/09/07 19:02:58 Sure, DrawLayersOnThread always happens after Draw
danakj 2016/09/07 19:05:46 Ah, just cuz I wanted to make tests work with that
test_hooks_->DrawLayersOnThread(this);
+ return r;
}
void NotifyReadyToActivate() override {

Powered by Google App Engine
This is Rietveld 408576698