OLD | NEW |
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 <memory> | 10 #include <memory> |
11 | 11 |
12 #include "base/cancelable_callback.h" | 12 #include "base/cancelable_callback.h" |
13 #include "base/macros.h" | 13 #include "base/macros.h" |
14 #include "base/memory/weak_ptr.h" | 14 #include "base/memory/weak_ptr.h" |
15 #include "build/build_config.h" | 15 #include "build/build_config.h" |
16 #include "content/browser/compositor/browser_compositor_output_surface.h" | 16 #include "content/browser/compositor/browser_compositor_output_surface.h" |
17 | 17 |
18 namespace ui { | |
19 class CompositorVSyncManager; | |
20 } | |
21 | |
22 namespace content { | 18 namespace content { |
23 class ContextProviderCommandBuffer; | 19 class ContextProviderCommandBuffer; |
24 class ReflectorTexture; | 20 class ReflectorTexture; |
25 | 21 |
26 class OffscreenBrowserCompositorOutputSurface | 22 class OffscreenBrowserCompositorOutputSurface |
27 : public BrowserCompositorOutputSurface { | 23 : public BrowserCompositorOutputSurface { |
28 public: | 24 public: |
29 OffscreenBrowserCompositorOutputSurface( | 25 OffscreenBrowserCompositorOutputSurface( |
30 scoped_refptr<ContextProviderCommandBuffer> context, | 26 scoped_refptr<ContextProviderCommandBuffer> context, |
31 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 27 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, |
32 cc::SyntheticBeginFrameSource* begin_frame_source, | |
33 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 28 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
34 overlay_candidate_validator); | 29 overlay_candidate_validator); |
35 | 30 |
36 ~OffscreenBrowserCompositorOutputSurface() override; | 31 ~OffscreenBrowserCompositorOutputSurface() override; |
37 | 32 |
38 private: | 33 private: |
39 // cc::OutputSurface implementation. | 34 // cc::OutputSurface implementation. |
40 void BindToClient(cc::OutputSurfaceClient* client) override; | 35 void BindToClient(cc::OutputSurfaceClient* client) override; |
41 void EnsureBackbuffer() override; | 36 void EnsureBackbuffer() override; |
42 void DiscardBackbuffer() override; | 37 void DiscardBackbuffer() override; |
(...skipping 23 matching lines...) Expand all Loading... |
66 std::unique_ptr<ReflectorTexture> reflector_texture_; | 61 std::unique_ptr<ReflectorTexture> reflector_texture_; |
67 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
68 weak_ptr_factory_; | 63 weak_ptr_factory_; |
69 | 64 |
70 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 65 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
71 }; | 66 }; |
72 | 67 |
73 } // namespace content | 68 } // namespace content |
74 | 69 |
75 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 70 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
OLD | NEW |