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

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

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Patch Set: Rebase. Created 4 years, 6 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_output_surface_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/threading/thread_task_runner_handle.h" 10 #include "base/threading/thread_task_runner_handle.h"
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 if (renderer_) 333 if (renderer_)
334 renderer_->SwapBuffersComplete(); 334 renderer_->SwapBuffersComplete();
335 } 335 }
336 336
337 void Display::CommitVSyncParameters(base::TimeTicks timebase, 337 void Display::CommitVSyncParameters(base::TimeTicks timebase,
338 base::TimeDelta interval) { 338 base::TimeDelta interval) {
339 // Display uses a BeginFrameSource instead. 339 // Display uses a BeginFrameSource instead.
340 NOTREACHED(); 340 NOTREACHED();
341 } 341 }
342 342
343 void Display::DidReceiveTextureInUseResponses(
344 const gpu::TextureInUseResponses& responses) {
345 if (renderer_)
346 renderer_->DidReceiveTextureInUseResponses(responses);
347 }
348
343 void Display::SetBeginFrameSource(BeginFrameSource* source) { 349 void Display::SetBeginFrameSource(BeginFrameSource* source) {
344 // The BeginFrameSource is set from the constructor, it doesn't come 350 // The BeginFrameSource is set from the constructor, it doesn't come
345 // from the OutputSurface for the Display. 351 // from the OutputSurface for the Display.
346 NOTREACHED(); 352 NOTREACHED();
347 } 353 }
348 354
349 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) { 355 void Display::SetMemoryPolicy(const ManagedMemoryPolicy& policy) {
350 client_->DisplaySetMemoryPolicy(policy); 356 client_->DisplaySetMemoryPolicy(policy);
351 } 357 }
352 358
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 410
405 if (surface_id == current_surface_id_) 411 if (surface_id == current_surface_id_)
406 UpdateRootSurfaceResourcesLocked(); 412 UpdateRootSurfaceResourcesLocked();
407 } 413 }
408 414
409 SurfaceId Display::CurrentSurfaceId() { 415 SurfaceId Display::CurrentSurfaceId() {
410 return current_surface_id_; 416 return current_surface_id_;
411 } 417 }
412 418
413 } // namespace cc 419 } // namespace cc
OLDNEW
« no previous file with comments | « cc/surfaces/display.h ('k') | cc/test/fake_output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698