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

Side by Side Diff: cc/output/output_surface.cc

Issue 2147873003: cc: Dedup IPCs to return resources to client (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased 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
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 "cc/output/output_surface.h" 5 #include "cc/output/output_surface.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/location.h" 10 #include "base/location.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 weak_ptr_factory_(this) { 135 weak_ptr_factory_(this) {
136 client_thread_checker_.DetachFromThread(); 136 client_thread_checker_.DetachFromThread();
137 } 137 }
138 138
139 // Forwarded to OutputSurfaceClient 139 // Forwarded to OutputSurfaceClient
140 void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { 140 void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) {
141 TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect"); 141 TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect");
142 client_->SetNeedsRedrawRect(damage_rect); 142 client_->SetNeedsRedrawRect(damage_rect);
143 } 143 }
144 144
145 void OutputSurface::ReclaimResources(const CompositorFrameAck* ack) { 145 void OutputSurface::ReclaimResources(const ReturnedResourceArray& resources) {
146 client_->ReclaimResources(ack); 146 client_->ReclaimResources(resources);
147 } 147 }
148 148
149 void OutputSurface::DidLoseOutputSurface() { 149 void OutputSurface::DidLoseOutputSurface() {
150 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface"); 150 TRACE_EVENT0("cc", "OutputSurface::DidLoseOutputSurface");
151 client_->DidLoseOutputSurface(); 151 client_->DidLoseOutputSurface();
152 } 152 }
153 153
154 void OutputSurface::SetExternalStencilTest(bool enabled) { 154 void OutputSurface::SetExternalStencilTest(bool enabled) {
155 external_stencil_test_enabled_ = enabled; 155 external_stencil_test_enabled_ = enabled;
156 } 156 }
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 if (context_provider_.get()) { 334 if (context_provider_.get()) {
335 context_provider_->SetLostContextCallback( 335 context_provider_->SetLostContextCallback(
336 ContextProvider::LostContextCallback()); 336 ContextProvider::LostContextCallback());
337 } 337 }
338 context_provider_ = nullptr; 338 context_provider_ = nullptr;
339 client_ = nullptr; 339 client_ = nullptr;
340 weak_ptr_factory_.InvalidateWeakPtrs(); 340 weak_ptr_factory_.InvalidateWeakPtrs();
341 } 341 }
342 342
343 } // namespace cc 343 } // namespace cc
OLDNEW
« no previous file with comments | « cc/output/output_surface.h ('k') | cc/output/output_surface_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698