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

Unified Diff: cc/test/fake_compositor_frame_sink.cc

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase 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 | « cc/test/fake_compositor_frame_sink.h ('k') | cc/test/fake_compositor_frame_sink_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_compositor_frame_sink.cc
diff --git a/cc/test/fake_compositor_frame_sink.cc b/cc/test/fake_compositor_frame_sink.cc
index 760225faee9b61f187f8dfed079188bb4695bfd9..2907a1c66aa6f9a3c679fe65106356c93277da0f 100644
--- a/cc/test/fake_compositor_frame_sink.cc
+++ b/cc/test/fake_compositor_frame_sink.cc
@@ -15,23 +15,9 @@ namespace cc {
FakeCompositorFrameSink::FakeCompositorFrameSink(
scoped_refptr<ContextProvider> context_provider,
- scoped_refptr<ContextProvider> worker_context_provider,
- bool delegated_rendering)
- : FakeCompositorFrameSink(std::move(context_provider),
- std::move(worker_context_provider),
- nullptr,
- delegated_rendering) {}
-
-FakeCompositorFrameSink::FakeCompositorFrameSink(
- scoped_refptr<ContextProvider> context_provider,
- scoped_refptr<ContextProvider> worker_context_provider,
- std::unique_ptr<SoftwareOutputDevice> software_device,
- bool delegated_rendering)
+ scoped_refptr<ContextProvider> worker_context_provider)
: CompositorFrameSink(std::move(context_provider),
- std::move(worker_context_provider),
- std::move(software_device)) {
- capabilities_.delegated_rendering = delegated_rendering;
-}
+ std::move(worker_context_provider)) {}
FakeCompositorFrameSink::~FakeCompositorFrameSink() = default;
@@ -66,22 +52,6 @@ void FakeCompositorFrameSink::SwapBuffers(CompositorFrame frame) {
PostSwapBuffersComplete();
}
-void FakeCompositorFrameSink::BindFramebuffer() {
- if (framebuffer_) {
- context_provider_->ContextGL()->BindFramebuffer(GL_FRAMEBUFFER,
- framebuffer_);
- } else {
- CompositorFrameSink::BindFramebuffer();
- }
-}
-
-uint32_t FakeCompositorFrameSink::GetFramebufferCopyTextureFormat() {
- if (framebuffer_)
- return framebuffer_format_;
- else
- return GL_RGB;
-}
-
bool FakeCompositorFrameSink::BindToClient(CompositorFrameSinkClient* client) {
if (CompositorFrameSink::BindToClient(client)) {
client_ = client;
@@ -96,19 +66,6 @@ void FakeCompositorFrameSink::DetachFromClient() {
CompositorFrameSink::DetachFromClient();
}
-bool FakeCompositorFrameSink::HasExternalStencilTest() const {
- return has_external_stencil_test_;
-}
-
-bool FakeCompositorFrameSink::SurfaceIsSuspendForRecycle() const {
- return suspended_for_recycle_;
-}
-
-OverlayCandidateValidator*
-FakeCompositorFrameSink::GetOverlayCandidateValidator() const {
- return overlay_candidate_validator_;
-}
-
void FakeCompositorFrameSink::ReturnResourcesHeldByParent() {
// Check |delegated_frame_data| because we shouldn't reclaim resources
// for the Display which does not swap delegated frames.
« no previous file with comments | « cc/test/fake_compositor_frame_sink.h ('k') | cc/test/fake_compositor_frame_sink_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698