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

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

Issue 2083423006: Remove default begin frame sources from the renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase 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
367 void Display::DidReceiveTextureInUseResponses( 361 void Display::DidReceiveTextureInUseResponses(
368 const gpu::TextureInUseResponses& responses) { 362 const gpu::TextureInUseResponses& responses) {
369 if (renderer_) 363 if (renderer_)
370 renderer_->DidReceiveTextureInUseResponses(responses); 364 renderer_->DidReceiveTextureInUseResponses(responses);
371 } 365 }
372 366
373 void Display::SetBeginFrameSource(BeginFrameSource* source) { 367 void Display::SetBeginFrameSource(BeginFrameSource* source) {
374 // The BeginFrameSource is set from the constructor, it doesn't come 368 // The BeginFrameSource is set from the constructor, it doesn't come
375 // from the OutputSurface for the Display. 369 // from the OutputSurface for the Display.
376 NOTREACHED(); 370 NOTREACHED();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 const SurfaceId& Display::CurrentSurfaceId() { 427 const SurfaceId& Display::CurrentSurfaceId() {
434 return current_surface_id_; 428 return current_surface_id_;
435 } 429 }
436 430
437 void Display::ForceImmediateDrawAndSwapIfPossible() { 431 void Display::ForceImmediateDrawAndSwapIfPossible() {
438 if (scheduler_) 432 if (scheduler_)
439 scheduler_->ForceImmediateSwapIfPossible(); 433 scheduler_->ForceImmediateSwapIfPossible();
440 } 434 }
441 435
442 } // namespace cc 436 } // 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