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