| 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 // BrowserCompositorOutputSurface | 53 // BrowserCompositorOutputSurface |
| 54 void OnReflectorChanged() override; | 54 void OnReflectorChanged() override; |
| 55 void OnGpuSwapBuffersCompleted( | 55 void OnGpuSwapBuffersCompleted( |
| 56 const std::vector<ui::LatencyInfo>& latency_info, | 56 const std::vector<ui::LatencyInfo>& latency_info, |
| 57 gfx::SwapResult result, | 57 gfx::SwapResult result, |
| 58 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; | 58 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override{}; |
| 59 #if defined(OS_MACOSX) | 59 #if defined(OS_MACOSX) |
| 60 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; | 60 void SetSurfaceSuspendedForRecycle(bool suspended) override {}; |
| 61 #endif | 61 #endif |
| 62 | 62 |
| 63 gfx::Size reshape_size_; |
| 63 uint32_t fbo_ = 0; | 64 uint32_t fbo_ = 0; |
| 64 bool reflector_changed_ = false; | 65 bool reflector_changed_ = false; |
| 65 std::unique_ptr<ReflectorTexture> reflector_texture_; | 66 std::unique_ptr<ReflectorTexture> reflector_texture_; |
| 66 | 67 |
| 67 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> | 68 base::WeakPtrFactory<OffscreenBrowserCompositorOutputSurface> |
| 68 weak_ptr_factory_; | 69 weak_ptr_factory_; |
| 69 | 70 |
| 70 private: | 71 private: |
| 71 void OnSwapBuffersComplete(); | 72 void OnSwapBuffersComplete(); |
| 72 | 73 |
| 73 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); | 74 DISALLOW_COPY_AND_ASSIGN(OffscreenBrowserCompositorOutputSurface); |
| 74 }; | 75 }; |
| 75 | 76 |
| 76 } // namespace content | 77 } // namespace content |
| 77 | 78 |
| 78 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ | 79 #endif // CONTENT_BROWSER_COMPOSITOR_OFFSCREEN_BROWSER_COMPOSITOR_OUTPUT_SURFAC
E_H_ |
| OLD | NEW |