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

Side by Side Diff: content/browser/compositor/offscreen_browser_compositor_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: Rebase; refactor mus output surface 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _ 6 #define CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H _
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 11 matching lines...) Expand all
22 class CommandBufferProxyImpl; 22 class CommandBufferProxyImpl;
23 class ReflectorTexture; 23 class ReflectorTexture;
24 24
25 class OffscreenBrowserCompositorOutputSurface 25 class OffscreenBrowserCompositorOutputSurface
26 : public BrowserCompositorOutputSurface { 26 : public BrowserCompositorOutputSurface {
27 public: 27 public:
28 OffscreenBrowserCompositorOutputSurface( 28 OffscreenBrowserCompositorOutputSurface(
29 const scoped_refptr<ContextProviderCommandBuffer>& context, 29 const scoped_refptr<ContextProviderCommandBuffer>& context,
30 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, 30 const scoped_refptr<ContextProviderCommandBuffer>& worker_context,
31 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 31 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
32 base::SingleThreadTaskRunner* task_runner,
32 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 33 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
33 overlay_candidate_validator); 34 overlay_candidate_validator);
34 35
35 ~OffscreenBrowserCompositorOutputSurface() override; 36 ~OffscreenBrowserCompositorOutputSurface() override;
36 37
37 protected: 38 protected:
38 // cc::OutputSurface: 39 // cc::OutputSurface:
39 void EnsureBackbuffer() override; 40 void EnsureBackbuffer() override;
40 void DiscardBackbuffer() override; 41 void DiscardBackbuffer() override;
41 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override; 42 void Reshape(const gfx::Size& size, float scale_factor, bool alpha) override;
(...skipping 18 matching lines...) Expand all
60 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> 61 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface>
61 weak_ptr_factory_; 62 weak_ptr_factory_;
62 63
63 private: 64 private:
64 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); 65 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface);
65 }; 66 };
66 67
67 } // namespace content 68 } // namespace content
68 69
69 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_ 70 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC E_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698