| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // BrowserCompositorOutputSurface | 47 // BrowserCompositorOutputSurface |
| 48 void OnReflectorChanged() override; | 48 void OnReflectorChanged() override; |
| 49 base::Closure CreateCompositionStartedCallback() override; | 49 base::Closure CreateCompositionStartedCallback() override; |
| 50 void OnGpuSwapBuffersCompleted( | 50 void OnGpuSwapBuffersCompleted( |
| 51 const std::vector<ui::LatencyInfo>& latency_info, | 51 const std::vector<ui::LatencyInfo>& latency_info, |
| 52 gfx::SwapResult result, | 52 gfx::SwapResult result, |
| 53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; | 53 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; |
| 54 #if defined(OS_MACOSX) | 54 #if defined(OS_MACOSX) |
| 55 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; | 55 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; |
| 56 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override; | |
| 57 #endif | 56 #endif |
| 58 | 57 |
| 59 uint32_t fbo_; | 58 uint32_t fbo_; |
| 60 bool is_backbuffer_discarded_; | 59 bool is_backbuffer_discarded_; |
| 61 std::unique_ptr<ReflectorTexture> reflector_texture_; | 60 std::unique_ptr<ReflectorTexture> reflector_texture_; |
| 62 | 61 |
| 63 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 62 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
| 64 weak_ptr_factory_; | 63 weak_ptr_factory_; |
| 65 | 64 |
| 66 private: | 65 private: |
| 67 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 66 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
| 68 }; | 67 }; |
| 69 | 68 |
| 70 } // namespace content | 69 } // namespace content |
| 71 | 70 |
| 72 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 71 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
| OLD | NEW |