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

Unified Diff: cc/test/pixel_test_output_surface.h

Issue 1821863002: Hook up ui::Compositor to Display's BeginFrameSource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Display member destruction order Created 4 years, 8 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/pixel_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/pixel_test_output_surface.h
diff --git a/cc/test/pixel_test_output_surface.h b/cc/test/pixel_test_output_surface.h
index e0ddcb51fa22fc59710ea5d66a55c0adff0265f7..6cd4191adedce7b7eb7b77f905198a3188fa6865 100644
--- a/cc/test/pixel_test_output_surface.h
+++ b/cc/test/pixel_test_output_surface.h
@@ -9,18 +9,25 @@
namespace cc {
+class BeginFrameSource;
+
class PixelTestOutputSurface : public OutputSurface {
public:
explicit PixelTestOutputSurface(
scoped_refptr<ContextProvider> context_provider,
scoped_refptr<ContextProvider> worker_context_provider,
- bool flipped_output_surface);
+ bool flipped_output_surface,
+ std::unique_ptr<BeginFrameSource> begin_frame_source);
explicit PixelTestOutputSurface(
scoped_refptr<ContextProvider> context_provider,
- bool flipped_output_surface);
+ bool flipped_output_surface,
+ std::unique_ptr<BeginFrameSource> begin_frame_source);
explicit PixelTestOutputSurface(
- std::unique_ptr<SoftwareOutputDevice> software_device);
+ std::unique_ptr<SoftwareOutputDevice> software_device,
+ std::unique_ptr<BeginFrameSource> begin_frame_source);
+ ~PixelTestOutputSurface() override;
+ bool BindToClient(OutputSurfaceClient* client) override;
void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
bool HasExternalStencilTest() const override;
void SwapBuffers(CompositorFrame* frame) override;
@@ -33,6 +40,7 @@ class PixelTestOutputSurface : public OutputSurface {
}
private:
+ std::unique_ptr<BeginFrameSource> begin_frame_source_;
gfx::Size surface_expansion_size_;
bool external_stencil_test_;
};
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/pixel_test_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698