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

Side by Side Diff: blimp/client/app/compositor/browser_compositor.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
« no previous file with comments | « no previous file | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 5 #ifndef BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 6 #define BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "blimp/client/support/compositor/blimp_embedder_compositor.h" 9 #include "blimp/client/support/compositor/blimp_embedder_compositor.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 17 matching lines...) Expand all
28 // draw to the screen. 28 // draw to the screen.
29 void SetAcceleratedWidget(gfx::AcceleratedWidget widget); 29 void SetAcceleratedWidget(gfx::AcceleratedWidget widget);
30 30
31 // A callback to get notifed when the compositor performs a successful swap. 31 // A callback to get notifed when the compositor performs a successful swap.
32 void set_did_complete_swap_buffers_callback(base::Closure callback) { 32 void set_did_complete_swap_buffers_callback(base::Closure callback) {
33 did_complete_swap_buffers_ = callback; 33 did_complete_swap_buffers_ = callback;
34 } 34 }
35 35
36 protected: 36 protected:
37 // BlimpEmbedderCompositor implementation. 37 // BlimpEmbedderCompositor implementation.
38 void DidCompleteSwapBuffers() override; 38 void DidReceiveCompositorFrameAck() override;
39 39
40 base::Closure did_complete_swap_buffers_; 40 base::Closure did_complete_swap_buffers_;
41 41
42 private: 42 private:
43 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor); 43 DISALLOW_COPY_AND_ASSIGN(BrowserCompositor);
44 }; 44 };
45 45
46 } // namespace client 46 } // namespace client
47 } // namespace blimp 47 } // namespace blimp
48 48
49 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_ 49 #endif // BLIMP_CLIENT_APP_COMPOSITOR_BROWSER_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « no previous file | blimp/client/app/compositor/browser_compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698