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

Unified Diff: cc/trees/remote_channel_impl.h

Issue 2282433002: Revert of cc: Delete all the RendererCapabilities. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-prepare-mailbox-param
Patch Set: 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.cc ('k') | cc/trees/remote_channel_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/remote_channel_impl.h
diff --git a/cc/trees/remote_channel_impl.h b/cc/trees/remote_channel_impl.h
index b5fa1816f0b96c5cc6acdd5e37fd3248a14b9b55..81ae01b3c150e9ac2f9f0a2160d86e6badaecb46 100644
--- a/cc/trees/remote_channel_impl.h
+++ b/cc/trees/remote_channel_impl.h
@@ -105,6 +105,8 @@
// this queue if we are waiting for a new output surface to be initialized.
std::queue<proto::CompositorMessageToImpl> pending_messages;
+ RendererCapabilities renderer_capabilities;
+
base::WeakPtrFactory<RemoteChannelImpl> remote_channel_weak_factory;
MainThreadOnly(RemoteChannelImpl*,
@@ -134,6 +136,7 @@
void SetOutputSurface(OutputSurface* output_surface) override;
void ReleaseOutputSurface() override;
void SetVisible(bool visible) override;
+ const RendererCapabilities& GetRendererCapabilities() const override;
void SetNeedsAnimate() override;
void SetNeedsUpdateLayers() override;
void SetNeedsCommit() override;
@@ -157,12 +160,16 @@
// Called on impl thread.
// ChannelImpl implementation
void DidCompleteSwapBuffers() override;
+ void SetRendererCapabilitiesMainCopy(
+ const RendererCapabilities& capabilities) override;
void BeginMainFrameNotExpectedSoon() override;
void DidCommitAndDrawFrame() override;
void SetAnimationEvents(std::unique_ptr<AnimationEvents> queue) override;
void DidLoseOutputSurface() override;
void RequestNewOutputSurface() override;
- void DidInitializeOutputSurface(bool success) override;
+ void DidInitializeOutputSurface(
+ bool success,
+ const RendererCapabilities& capabilities) override;
void DidCompletePageScaleAnimation() override;
void BeginMainFrame(std::unique_ptr<BeginMainFrameAndCommitState>
begin_main_frame_state) override;
@@ -175,7 +182,9 @@
void DidCommitAndDrawFrameOnMain();
void DidLoseOutputSurfaceOnMain();
void RequestNewOutputSurfaceOnMain();
- void DidInitializeOutputSurfaceOnMain(bool success);
+ void DidInitializeOutputSurfaceOnMain(
+ bool success,
+ const RendererCapabilities& capabilities);
void SendMessageProtoOnMain(std::unique_ptr<proto::CompositorMessage> proto);
void PostSetNeedsRedrawToImpl(const gfx::Rect& damaged_rect);
« no previous file with comments | « cc/trees/proxy_main.cc ('k') | cc/trees/remote_channel_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698