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

Unified Diff: blimp/client/core/compositor/delegated_output_surface.cc

Issue 2329623003: cc: Remove unneeded methods from OutputSurface. (Closed)
Patch Set: superandroid 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « blimp/client/core/compositor/delegated_output_surface.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/client/core/compositor/delegated_output_surface.cc
diff --git a/blimp/client/core/compositor/delegated_output_surface.cc b/blimp/client/core/compositor/delegated_output_surface.cc
index a28d8a23b953ea11b9c4fe856012b4870e14f670..5c2a5a5290fcde4bcb8f6340d01274a344ba9a01 100644
--- a/blimp/client/core/compositor/delegated_output_surface.cc
+++ b/blimp/client/core/compositor/delegated_output_surface.cc
@@ -27,7 +27,7 @@ DelegatedOutputSurface::DelegatedOutputSurface(
std::move(worker_context_provider),
nullptr),
main_task_runner_(std::move(main_task_runner)),
- client_(client),
+ blimp_client_(client),
bound_to_client_(false),
weak_factory_(this) {
DCHECK(main_task_runner_->BelongsToCurrentThread());
@@ -39,7 +39,7 @@ DelegatedOutputSurface::~DelegatedOutputSurface() = default;
void DelegatedOutputSurface::ReclaimCompositorResources(
const cc::ReturnedResourceArray& resources) {
DCHECK(client_thread_checker_.CalledOnValidThread());
- cc::OutputSurface::ReclaimResources(resources);
+ client_->ReclaimResources(resources);
}
uint32_t DelegatedOutputSurface::GetFramebufferCopyTextureFormat() {
@@ -57,7 +57,7 @@ bool DelegatedOutputSurface::BindToClient(cc::OutputSurfaceClient* client) {
main_task_runner_->PostTask(
FROM_HERE, base::Bind(&BlimpOutputSurfaceClient::BindToOutputSurface,
- client_, weak_factory_.GetWeakPtr()));
+ blimp_client_, weak_factory_.GetWeakPtr()));
}
return success;
}
@@ -67,7 +67,7 @@ void DelegatedOutputSurface::SwapBuffers(cc::CompositorFrame frame) {
main_task_runner_->PostTask(
FROM_HERE, base::Bind(&BlimpOutputSurfaceClient::SwapCompositorFrame,
- client_, base::Passed(&frame)));
+ blimp_client_, base::Passed(&frame)));
cc::OutputSurface::PostSwapBuffersComplete();
}
@@ -77,8 +77,8 @@ void DelegatedOutputSurface::DetachFromClient() {
if (bound_to_client_ == true) {
bound_to_client_ = false;
main_task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&BlimpOutputSurfaceClient::UnbindOutputSurface, client_));
+ FROM_HERE, base::Bind(&BlimpOutputSurfaceClient::UnbindOutputSurface,
+ blimp_client_));
}
weak_factory_.InvalidateWeakPtrs();
« no previous file with comments | « blimp/client/core/compositor/delegated_output_surface.h ('k') | cc/output/output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698