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

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

Issue 2296353002: Revert of Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/surfaces/display.h ('k') | cc/test/fake_layer_tree_host_impl_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 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/display.h" 5 #include "cc/surfaces/display.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/trace_event/trace_event.h" 10 #include "base/trace_event/trace_event.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 return true; 351 return true;
352 } 352 }
353 353
354 void Display::DidSwapBuffersComplete() { 354 void Display::DidSwapBuffersComplete() {
355 if (scheduler_) 355 if (scheduler_)
356 scheduler_->DidSwapBuffersComplete(); 356 scheduler_->DidSwapBuffersComplete();
357 if (renderer_) 357 if (renderer_)
358 renderer_->SwapBuffersComplete(); 358 renderer_->SwapBuffersComplete();
359 } 359 }
360 360
361 void Display::CommitVSyncParameters(base::TimeTicks timebase,
362 base::TimeDelta interval) {
363 // Display uses a BeginFrameSource instead.
364 NOTREACHED();
365 }
366
361 void Display::DidReceiveTextureInUseResponses( 367 void Display::DidReceiveTextureInUseResponses(
362 const gpu::TextureInUseResponses& responses) { 368 const gpu::TextureInUseResponses& responses) {
363 if (renderer_) 369 if (renderer_)
364 renderer_->DidReceiveTextureInUseResponses(responses); 370 renderer_->DidReceiveTextureInUseResponses(responses);
365 } 371 }
366 372
367 void Display::SetBeginFrameSource(BeginFrameSource* source) { 373 void Display::SetBeginFrameSource(BeginFrameSource* source) {
368 // The BeginFrameSource is set from the constructor, it doesn't come 374 // The BeginFrameSource is set from the constructor, it doesn't come
369 // from the OutputSurface for the Display. 375 // from the OutputSurface for the Display.
370 NOTREACHED(); 376 NOTREACHED();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
427 const SurfaceId& Display::CurrentSurfaceId() { 433 const SurfaceId& Display::CurrentSurfaceId() {
428 return current_surface_id_; 434 return current_surface_id_;
429 } 435 }
430 436
431 void Display::ForceImmediateDrawAndSwapIfPossible() { 437 void Display::ForceImmediateDrawAndSwapIfPossible() {
432 if (scheduler_) 438 if (scheduler_)
433 scheduler_->ForceImmediateSwapIfPossible(); 439 scheduler_->ForceImmediateSwapIfPossible();
434 } 440 }
435 441
436 } // namespace cc 442 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/test/fake_layer_tree_host_impl_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698