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

Side by Side Diff: services/ui/public/cpp/compositor_frame_sink.h

Issue 2409923002: cc: Rename SwapBuffers on CompositorFrameSink to SubmitCompositorFrame (Closed)
Patch Set: swap-to-submit: 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_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_
6 #define SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_ 6 #define SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/output/compositor_frame_sink.h" 9 #include "cc/output/compositor_frame_sink.h"
10 #include "cc/scheduler/begin_frame_source.h" 10 #include "cc/scheduler/begin_frame_source.h"
(...skipping 11 matching lines...) Expand all
22 class CompositorFrameSink : public cc::CompositorFrameSink, 22 class CompositorFrameSink : public cc::CompositorFrameSink,
23 public WindowSurfaceClient { 23 public WindowSurfaceClient {
24 public: 24 public:
25 CompositorFrameSink(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host, 25 CompositorFrameSink(scoped_refptr<gpu::GpuChannelHost> gpu_channel_host,
26 std::unique_ptr<WindowSurface> surface); 26 std::unique_ptr<WindowSurface> surface);
27 ~CompositorFrameSink() override; 27 ~CompositorFrameSink() override;
28 28
29 // cc::CompositorFrameSink implementation. 29 // cc::CompositorFrameSink implementation.
30 bool BindToClient(cc::CompositorFrameSinkClient* client) override; 30 bool BindToClient(cc::CompositorFrameSinkClient* client) override;
31 void DetachFromClient() override; 31 void DetachFromClient() override;
32 void SwapBuffers(cc::CompositorFrame frame) override; 32 void SubmitCompositorFrame(cc::CompositorFrame frame) override;
33 33
34 private: 34 private:
35 // WindowSurfaceClient implementation: 35 // WindowSurfaceClient implementation:
36 void OnResourcesReturned(WindowSurface* surface, 36 void OnResourcesReturned(WindowSurface* surface,
37 const cc::ReturnedResourceArray& resources) override; 37 const cc::ReturnedResourceArray& resources) override;
38 38
39 void SwapBuffersComplete();
40
41 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_; 39 std::unique_ptr<cc::BeginFrameSource> begin_frame_source_;
42 std::unique_ptr<WindowSurface> surface_; 40 std::unique_ptr<WindowSurface> surface_;
43 41
44 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink); 42 DISALLOW_COPY_AND_ASSIGN(CompositorFrameSink);
45 }; 43 };
46 44
47 } // namespace ui 45 } // namespace ui
48 46
49 #endif // SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_ 47 #endif // SERVICES_UI_PUBLIC_CPP_COMPOSITOR_FRAME_SINK_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/renderer_compositor_frame_sink.cc ('k') | services/ui/public/cpp/compositor_frame_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698