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

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

Issue 2329623003: cc: Remove unneeded methods from OutputSurface. (Closed)
Patch Set: superandroid 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 unified diff | Download patch
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/test/test_delegating_output_surface.cc » ('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/surface_display_output_surface.h" 5 #include "cc/surfaces/surface_display_output_surface.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/surfaces/display.h" 9 #include "cc/surfaces/display.h"
10 #include "cc/surfaces/surface.h" 10 #include "cc/surfaces/surface.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 } 138 }
139 139
140 void SurfaceDisplayOutputSurface::SetBeginFrameSource( 140 void SurfaceDisplayOutputSurface::SetBeginFrameSource(
141 BeginFrameSource* begin_frame_source) { 141 BeginFrameSource* begin_frame_source) {
142 DCHECK(client_); 142 DCHECK(client_);
143 client_->SetBeginFrameSource(begin_frame_source); 143 client_->SetBeginFrameSource(begin_frame_source);
144 } 144 }
145 145
146 void SurfaceDisplayOutputSurface::DisplayOutputSurfaceLost() { 146 void SurfaceDisplayOutputSurface::DisplayOutputSurfaceLost() {
147 output_surface_lost_ = true; 147 output_surface_lost_ = true;
148 DidLoseOutputSurface(); 148 client_->DidLoseOutputSurface();
149 } 149 }
150 150
151 void SurfaceDisplayOutputSurface::DisplayWillDrawAndSwap( 151 void SurfaceDisplayOutputSurface::DisplayWillDrawAndSwap(
152 bool will_draw_and_swap, 152 bool will_draw_and_swap,
153 const RenderPassList& render_passes) { 153 const RenderPassList& render_passes) {
154 // This notification is not relevant to our client outside of tests. 154 // This notification is not relevant to our client outside of tests.
155 } 155 }
156 156
157 void SurfaceDisplayOutputSurface::DisplayDidDrawAndSwap() { 157 void SurfaceDisplayOutputSurface::DisplayDidDrawAndSwap() {
158 // This notification is not relevant to our client outside of tests. We 158 // This notification is not relevant to our client outside of tests. We
159 // unblock the client from DidDrawCallback() when the surface is going to 159 // unblock the client from DidDrawCallback() when the surface is going to
160 // be drawn. 160 // be drawn.
161 } 161 }
162 162
163 void SurfaceDisplayOutputSurface::DidDrawCallback() { 163 void SurfaceDisplayOutputSurface::DidDrawCallback() {
164 // TODO(danakj): Why the lost check? 164 // TODO(danakj): Why the lost check?
165 if (!output_surface_lost_) 165 if (!output_surface_lost_)
166 client_->DidSwapBuffersComplete(); 166 client_->DidSwapBuffersComplete();
167 } 167 }
168 168
169 } // namespace cc 169 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.cc ('k') | cc/test/test_delegating_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698