| 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> |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 namespace content { | 22 namespace content { |
| 23 class CommandBufferProxyImpl; | 23 class CommandBufferProxyImpl; |
| 24 class ReflectorTexture; | 24 class ReflectorTexture; |
| 25 | 25 |
| 26 class OffscreenBrowserCompositorOutputSurface | 26 class OffscreenBrowserCompositorOutputSurface |
| 27 : public BrowserCompositorOutputSurface { | 27 : public BrowserCompositorOutputSurface { |
| 28 public: | 28 public: |
| 29 OffscreenBrowserCompositorOutputSurface( | 29 OffscreenBrowserCompositorOutputSurface( |
| 30 scoped_refptr<ContextProviderCommandBuffer> context, | 30 scoped_refptr<ContextProviderCommandBuffer> context, |
| 31 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 31 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, |
| 32 base::SingleThreadTaskRunner* task_runner, | 32 cc::SyntheticBeginFrameSource* begin_frame_source, |
| 33 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 33 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
| 34 overlay_candidate_validator); | 34 overlay_candidate_validator); |
| 35 | 35 |
| 36 ~OffscreenBrowserCompositorOutputSurface() override; | 36 ~OffscreenBrowserCompositorOutputSurface() override; |
| 37 | 37 |
| 38 protected: | 38 protected: |
| 39 // cc::OutputSurface: | 39 // cc::OutputSurface: |
| 40 void EnsureBackbuffer() override; | 40 void EnsureBackbuffer() override; |
| 41 void DiscardBackbuffer() override; | 41 void DiscardBackbuffer() override; |
| 42 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 Loading... |
| 61 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 61 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
| 62 weak_ptr_factory_; | 62 weak_ptr_factory_; |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 65 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
| 66 }; | 66 }; |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| 69 | 69 |
| 70 #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 |