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

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: Really revert task runner changes 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
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 f2c5f66c0d93b207eba4558d910c7173977e3355..151bc7296e30b70676875dbe7dab3384f8b7357e 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,
+ scoped_ptr<BeginFrameSource> begin_frame_source);
explicit PixelTestOutputSurface(
scoped_refptr<ContextProvider> context_provider,
- bool flipped_output_surface);
+ bool flipped_output_surface,
+ scoped_ptr<BeginFrameSource> begin_frame_source);
explicit PixelTestOutputSurface(
- scoped_ptr<SoftwareOutputDevice> software_device);
+ scoped_ptr<SoftwareOutputDevice> software_device,
+ scoped_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:
+ scoped_ptr<BeginFrameSource> begin_frame_source_;
gfx::Size surface_expansion_size_;
bool external_stencil_test_;
};

Powered by Google App Engine
This is Rietveld 408576698