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

Side by Side Diff: content/renderer/android/synchronous_compositor_output_surface.cc

Issue 2167713002: cc: Delete SurfaceDrawStatus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Scott's comments Created 4 years, 5 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "content/renderer/android/synchronous_compositor_output_surface.h" 5 #include "content/renderer/android/synchronous_compositor_output_surface.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 } 183 }
184 184
185 void SynchronousCompositorOutputSurface::Reshape( 185 void SynchronousCompositorOutputSurface::Reshape(
186 const gfx::Size& size, 186 const gfx::Size& size,
187 float scale_factor, 187 float scale_factor,
188 const gfx::ColorSpace& color_space, 188 const gfx::ColorSpace& color_space,
189 bool has_alpha) { 189 bool has_alpha) {
190 // Intentional no-op: surface size is controlled by the embedder. 190 // Intentional no-op: surface size is controlled by the embedder.
191 } 191 }
192 192
193 static void NoOpDrawCallback(cc::SurfaceDrawStatus s) {} 193 static void NoOpDrawCallback() {}
194 194
195 void SynchronousCompositorOutputSurface::SwapBuffers( 195 void SynchronousCompositorOutputSurface::SwapBuffers(
196 cc::CompositorFrame frame) { 196 cc::CompositorFrame frame) {
197 DCHECK(CalledOnValidThread()); 197 DCHECK(CalledOnValidThread());
198 DCHECK(sync_client_); 198 DCHECK(sync_client_);
199 199
200 if (fallback_tick_running_) { 200 if (fallback_tick_running_) {
201 DCHECK(frame.delegated_frame_data->resource_list.empty()); 201 DCHECK(frame.delegated_frame_data->resource_list.empty());
202 cc::ReturnedResourceArray return_resources; 202 cc::ReturnedResourceArray return_resources;
203 ReturnResources(return_resources); 203 ReturnResources(return_resources);
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 client_->ReclaimResources(resources); 403 client_->ReclaimResources(resources);
404 } 404 }
405 405
406 void SynchronousCompositorOutputSurface::SetBeginFrameSource( 406 void SynchronousCompositorOutputSurface::SetBeginFrameSource(
407 cc::BeginFrameSource* begin_frame_source) { 407 cc::BeginFrameSource* begin_frame_source) {
408 // Software output is synchronous and doesn't use a BeginFrameSource. 408 // Software output is synchronous and doesn't use a BeginFrameSource.
409 NOTREACHED(); 409 NOTREACHED();
410 } 410 }
411 411
412 } // namespace content 412 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698