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

Unified Diff: services/ui/surfaces/direct_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
Index: services/ui/surfaces/direct_output_surface.h
diff --git a/services/ui/surfaces/direct_output_surface.h b/services/ui/surfaces/direct_output_surface.h
index d85c939e7ff74d8637b3071a898e8e4b8df677bc..a265a9d94da14219235d1fe3a1bdba6583bb2ebd 100644
--- a/services/ui/surfaces/direct_output_surface.h
+++ b/services/ui/surfaces/direct_output_surface.h
@@ -30,14 +30,25 @@ class DirectOutputSurface : public cc::OutputSurface,
// cc::OutputSurface implementation
bool BindToClient(cc::OutputSurfaceClient* client) override;
+ void EnsureBackbuffer() override;
+ void DiscardBackbuffer() override;
+ void BindFramebuffer() override;
void SwapBuffers(cc::CompositorFrame frame) override;
uint32_t GetFramebufferCopyTextureFormat() override;
+ cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
+ bool IsDisplayedAsOverlayPlane() const override;
+ unsigned GetOverlayTextureId() const override;
+ bool SurfaceIsSuspendForRecycle() const override;
+ bool HasExternalStencilTest() const override;
+ void ApplyExternalStencil() override;
// SurfacesContextProviderDelegate implementation
void OnVSyncParametersUpdated(const base::TimeTicks& timebase,
const base::TimeDelta& interval) override;
private:
+ void OnSwapBuffersComplete();
+
cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
};
« no previous file with comments | « content/renderer/android/synchronous_compositor_frame_sink.cc ('k') | services/ui/surfaces/direct_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698