| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 private: | 34 private: |
| 35 void SwapBuffers(cc::CompositorFrame* frame) override; | 35 void SwapBuffers(cc::CompositorFrame* frame) override; |
| 36 void OnGpuSwapBuffersCompleted( | 36 void OnGpuSwapBuffersCompleted( |
| 37 const std::vector<ui::LatencyInfo>& latency_info, | 37 const std::vector<ui::LatencyInfo>& latency_info, |
| 38 gfx::SwapResult result, | 38 gfx::SwapResult result, |
| 39 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; | 39 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; |
| 40 | 40 |
| 41 #if defined(OS_MACOSX) | 41 #if defined(OS_MACOSX) |
| 42 void SetSurfaceSuspendedForRecycle(bool suspended) override; | 42 void SetSurfaceSuspendedForRecycle(bool suspended) override; |
| 43 bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const override; | |
| 44 #endif | 43 #endif |
| 45 | 44 |
| 46 base::WeakPtrFactory<SoftwareBrowserCompositorOutputSurface> weak_factory_; | 45 base::WeakPtrFactory<SoftwareBrowserCompositorOutputSurface> weak_factory_; |
| 47 | 46 |
| 48 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface); | 47 DISALLOW_COPY_AND_ASSIGN(SoftwareBrowserCompositorOutputSurface); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 } // namespace content | 50 } // namespace content |
| 52 | 51 |
| 53 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE
_H_ | 52 #endif // CONTENT_BROWSER_COMPOSITOR_SOFTWARE_BROWSER_COMPOSITOR_OUTPUT_SURFACE
_H_ |
| OLD | NEW |