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

Unified Diff: cc/test/fake_output_surface.h

Issue 2151433004: cc: Make LayerTreeHostImpl::SwapBuffers not virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removedidswap
Patch Set: novirtualswapbuffers: num_draws_ Created 4 years, 5 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/output_surface_client.h ('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 8fcc04a4cfd2549b42465a7c8bbdb276d62b476c..ca6676de64fec26141355e4fcf15aa8e3a2e9c74 100644
--- a/cc/test/fake_output_surface.h
+++ b/cc/test/fake_output_surface.h
@@ -109,6 +109,7 @@ class FakeOutputSurface : public OutputSurface {
OutputSurfaceClient* client() { return client_; }
bool BindToClient(OutputSurfaceClient* client) override;
+ void DetachFromClient() override;
void set_framebuffer(GLint framebuffer, GLenum format) {
framebuffer_ = framebuffer;
@@ -123,8 +124,6 @@ class FakeOutputSurface : public OutputSurface {
return resources_held_by_parent_;
}
- void ReturnResource(unsigned id, CompositorFrameAck* ack);
-
bool HasExternalStencilTest() const override;
bool SurfaceIsSuspendForRecycle() const override;
@@ -149,6 +148,8 @@ class FakeOutputSurface : public OutputSurface {
return last_swap_rect_;
}
+ void ReturnResourcesHeldByParent();
+
protected:
FakeOutputSurface(scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider,
« no previous file with comments | « cc/output/output_surface_client.h ('k') | cc/test/fake_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698