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

Side by Side Diff: services/ui/surfaces/direct_output_surface.h

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 5 #ifndef SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 6 #define SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "cc/output/output_surface.h" 10 #include "cc/output/output_surface.h"
(...skipping 15 matching lines...) Expand all
26 explicit DirectOutputSurface( 26 explicit DirectOutputSurface(
27 scoped_refptr<SurfacesContextProvider> context_provider, 27 scoped_refptr<SurfacesContextProvider> context_provider,
28 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source); 28 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source);
29 ~DirectOutputSurface() override; 29 ~DirectOutputSurface() override;
30 30
31 // cc::OutputSurface implementation 31 // cc::OutputSurface implementation
32 bool BindToClient(cc::OutputSurfaceClient* client) override; 32 bool BindToClient(cc::OutputSurfaceClient* client) override;
33 void EnsureBackbuffer() override; 33 void EnsureBackbuffer() override;
34 void DiscardBackbuffer() override; 34 void DiscardBackbuffer() override;
35 void BindFramebuffer() override; 35 void BindFramebuffer() override;
36 void SwapBuffers(cc::CompositorFrame frame) override; 36 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
37 uint32_t GetFramebufferCopyTextureFormat() override; 37 uint32_t GetFramebufferCopyTextureFormat() override;
38 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override; 38 cc::OverlayCandidateValidator* GetOverlayCandidateValidator() const override;
39 bool IsDisplayedAsOverlayPlane() const override; 39 bool IsDisplayedAsOverlayPlane() const override;
40 unsigned GetOverlayTextureId() const override; 40 unsigned GetOverlayTextureId() const override;
41 bool SurfaceIsSuspendForRecycle() const override; 41 bool SurfaceIsSuspendForRecycle() const override;
42 bool HasExternalStencilTest() const override; 42 bool HasExternalStencilTest() const override;
43 void ApplyExternalStencil() override; 43 void ApplyExternalStencil() override;
44 44
45 // SurfacesContextProviderDelegate implementation 45 // SurfacesContextProviderDelegate implementation
46 void OnVSyncParametersUpdated(const base::TimeTicks& timebase, 46 void OnVSyncParametersUpdated(const base::TimeTicks& timebase,
47 const base::TimeDelta& interval) override; 47 const base::TimeDelta& interval) override;
48 48
49 private: 49 private:
50 void OnSwapBuffersComplete(); 50 void OnSwapBuffersComplete();
51 51
52 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_; 52 cc::SyntheticBeginFrameSource* const synthetic_begin_frame_source_;
53 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; 53 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
54 }; 54 };
55 55
56 } // namespace ui 56 } // namespace ui
57 57
58 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_ 58 #endif // SERVICES_UI_SURFACES_DIRECT_OUTPUT_SURFACE_H_
OLDNEW
« 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