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

Side by Side Diff: cc/output/compositor_frame_sink.cc

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: rebase 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/compositor_frame_sink.h ('k') | cc/output/compositor_frame_sink_client.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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/output/compositor_frame_sink.h" 5 #include "cc/output/compositor_frame_sink.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 if (context_provider_.get()) { 69 if (context_provider_.get()) {
70 context_provider_->SetLostContextCallback( 70 context_provider_->SetLostContextCallback(
71 ContextProvider::LostContextCallback()); 71 ContextProvider::LostContextCallback());
72 } 72 }
73 // Destroy the ContextProvider on the bound thread. 73 // Destroy the ContextProvider on the bound thread.
74 context_provider_ = nullptr; 74 context_provider_ = nullptr;
75 client_ = nullptr; 75 client_ = nullptr;
76 } 76 }
77 77
78 // We don't post tasks bound to the client directly since they might run
79 // after the CompositorFrameSink has been destroyed.
80 void CompositorFrameSink::OnSwapBuffersComplete() {
81 client_->DidSwapBuffersComplete();
82 }
83
84 void CompositorFrameSink::DidLoseCompositorFrameSink() { 78 void CompositorFrameSink::DidLoseCompositorFrameSink() {
85 TRACE_EVENT0("cc", "CompositorFrameSink::DidLoseCompositorFrameSink"); 79 TRACE_EVENT0("cc", "CompositorFrameSink::DidLoseCompositorFrameSink");
86 client_->DidLoseCompositorFrameSink(); 80 client_->DidLoseCompositorFrameSink();
87 } 81 }
88 82
89 } // namespace cc 83 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/compositor_frame_sink.h ('k') | cc/output/compositor_frame_sink_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698