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

Unified Diff: cc/test/fake_output_surface.h

Issue 2352963002: cc: Make most of cc::OutputSurface abstract. (Closed)
Patch Set: outputsurface-cleanup: 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/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_output_surface.h
diff --git a/cc/test/fake_output_surface.h b/cc/test/fake_output_surface.h
index 1f2a09909ea6940d0a62dab0f09424563dbc72e6..c30eea1a76162de9480509c259ee7c145fd1209a 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -67,28 +67,26 @@ class FakeOutputSurface : public OutputSurface {
CompositorFrame* last_sent_frame() { return last_sent_frame_.get(); }
size_t num_sent_frames() { return num_sent_frames_; }
- void SwapBuffers(CompositorFrame frame) override;
-
OutputSurfaceClient* client() { return client_; }
+
bool BindToClient(OutputSurfaceClient* client) override;
- void DetachFromClient() override;
+ void EnsureBackbuffer() override {}
+ void DiscardBackbuffer() override {}
+ void BindFramebuffer() override;
+ void SwapBuffers(CompositorFrame frame) override;
+ uint32_t GetFramebufferCopyTextureFormat() override;
+ bool HasExternalStencilTest() const override;
+ void ApplyExternalStencil() override {}
+ bool SurfaceIsSuspendForRecycle() const override;
+ OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
+ bool IsDisplayedAsOverlayPlane() const override;
+ unsigned GetOverlayTextureId() const override;
void set_framebuffer(GLint framebuffer, GLenum format) {
framebuffer_ = framebuffer;
framebuffer_format_ = format;
}
- void BindFramebuffer() override;
- uint32_t GetFramebufferCopyTextureFormat() override;
-
- const TransferableResourceArray& resources_held_by_parent() {
- return resources_held_by_parent_;
- }
-
- bool HasExternalStencilTest() const override;
-
- bool SurfaceIsSuspendForRecycle() const override;
- OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
void SetOverlayCandidateValidator(OverlayCandidateValidator* validator) {
overlay_candidate_validator_ = validator;
}
@@ -108,6 +106,10 @@ class FakeOutputSurface : public OutputSurface {
void ReturnResourcesHeldByParent();
+ const TransferableResourceArray& resources_held_by_parent() {
+ return resources_held_by_parent_;
+ }
+
protected:
explicit FakeOutputSurface(scoped_refptr<ContextProvider> context_provider);
explicit FakeOutputSurface(
« no previous file with comments | « cc/output/overlay_unittest.cc ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698