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 "base/cancelable_callback.h" | 8 #include "base/cancelable_callback.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
11 #include "content/browser/compositor/browser_compositor_output_surface.h" | 11 #include "content/browser/compositor/browser_compositor_output_surface.h" |
12 | 12 |
13 namespace ui { | 13 namespace ui { |
14 class CompositorVSyncManager; | 14 class CompositorVSyncManager; |
15 } | 15 } |
16 | 16 |
17 namespace content { | 17 namespace content { |
18 class CommandBufferProxyImpl; | 18 class CommandBufferProxyImpl; |
19 class ReflectorTexture; | 19 class ReflectorTexture; |
20 | 20 |
21 class OffscreenBrowserCompositorOutputSurface | 21 class OffscreenBrowserCompositorOutputSurface |
22 : public BrowserCompositorOutputSurface { | 22 : public BrowserCompositorOutputSurface { |
23 public: | 23 public: |
24 OffscreenBrowserCompositorOutputSurface( | 24 OffscreenBrowserCompositorOutputSurface( |
25 const scoped_refptr<ContextProviderCommandBuffer>& context, | 25 const scoped_refptr<ContextProviderCommandBuffer>& context, |
| 26 const scoped_refptr<ContextProviderCommandBuffer>& worker_context, |
26 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, | 27 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, |
27 scoped_ptr<BrowserCompositorOverlayCandidateValidator> | 28 scoped_ptr<BrowserCompositorOverlayCandidateValidator> |
28 overlay_candidate_validator); | 29 overlay_candidate_validator); |
29 | 30 |
30 ~OffscreenBrowserCompositorOutputSurface() override; | 31 ~OffscreenBrowserCompositorOutputSurface() override; |
31 | 32 |
32 protected: | 33 protected: |
33 // cc::OutputSurface: | 34 // cc::OutputSurface: |
34 void EnsureBackbuffer() override; | 35 void EnsureBackbuffer() override; |
35 void DiscardBackbuffer() override; | 36 void DiscardBackbuffer() override; |
(...skipping 17 matching lines...) Expand all Loading... |
53 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 54 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
54 weak_ptr_factory_; | 55 weak_ptr_factory_; |
55 | 56 |
56 private: | 57 private: |
57 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 58 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
58 }; | 59 }; |
59 | 60 |
60 } // namespace content | 61 } // namespace content |
61 | 62 |
62 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 63 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
OLD | NEW |