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

Unified Diff: cc/trees/proxy_main.cc

Issue 2267263002: cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: renderer-caps: rebase Created 4 years, 4 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 | « cc/trees/proxy_main.h ('k') | cc/trees/remote_channel_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/proxy_main.cc
diff --git a/cc/trees/proxy_main.cc b/cc/trees/proxy_main.cc
index 04de28097a497ecacf39444e8f1d9bef3f04c1ee..9f3a1add77240eca8a87a262e243dd6a36c1b71b 100644
--- a/cc/trees/proxy_main.cc
+++ b/cc/trees/proxy_main.cc
@@ -76,12 +76,6 @@ void ProxyMain::DidCompleteSwapBuffers() {
layer_tree_host_->DidCompleteSwapBuffers();
}
-void ProxyMain::SetRendererCapabilities(
- const RendererCapabilities& capabilities) {
- DCHECK(IsMainThread());
- renderer_capabilities_ = capabilities;
-}
-
void ProxyMain::BeginMainFrameNotExpectedSoon() {
TRACE_EVENT0("cc", "ProxyMain::BeginMainFrameNotExpectedSoon");
DCHECK(IsMainThread());
@@ -111,18 +105,14 @@ void ProxyMain::RequestNewOutputSurface() {
layer_tree_host_->RequestNewOutputSurface();
}
-void ProxyMain::DidInitializeOutputSurface(
- bool success,
- const RendererCapabilities& capabilities) {
+void ProxyMain::DidInitializeOutputSurface(bool success) {
TRACE_EVENT0("cc", "ProxyMain::DidInitializeOutputSurface");
DCHECK(IsMainThread());
- if (!success) {
+ if (!success)
layer_tree_host_->DidFailToInitializeOutputSurface();
- return;
- }
- renderer_capabilities_ = capabilities;
- layer_tree_host_->DidInitializeOutputSurface();
+ else
+ layer_tree_host_->DidInitializeOutputSurface();
}
void ProxyMain::DidCompletePageScaleAnimation() {
@@ -280,12 +270,6 @@ void ProxyMain::SetVisible(bool visible) {
channel_main_->SetVisibleOnImpl(visible);
}
-const RendererCapabilities& ProxyMain::GetRendererCapabilities() const {
- DCHECK(IsMainThread());
- DCHECK(!layer_tree_host_->output_surface_lost());
- return renderer_capabilities_;
-}
-
void ProxyMain::SetNeedsAnimate() {
DCHECK(IsMainThread());
if (SendCommitRequestToImplThreadIfNeeded(ANIMATE_PIPELINE_STAGE)) {
« no previous file with comments | « cc/trees/proxy_main.h ('k') | cc/trees/remote_channel_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698