Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: content/browser/compositor/gpu_browser_compositor_output_surface.h

Issue 2352963002: cc: Make most of cc::OutputSurface abstract. (Closed)
Patch Set: outputsurface-cleanup: rebase Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/cancelable_callback.h" 10 #include "base/cancelable_callback.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 void OnReflectorChanged() override; 48 void OnReflectorChanged() override;
49 void OnGpuSwapBuffersCompleted( 49 void OnGpuSwapBuffersCompleted(
50 const std::vector<ui::LatencyInfo>& latency_info, 50 const std::vector<ui::LatencyInfo>& latency_info,
51 gfx::SwapResult result, 51 gfx::SwapResult result,
52 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override; 52 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) override;
53 #if defined(OS_MACOSX) 53 #if defined(OS_MACOSX)
54 void SetSurfaceSuspendedForRecycle(bool suspended) override; 54 void SetSurfaceSuspendedForRecycle(bool suspended) override;
55 #endif 55 #endif
56 56
57 // cc::OutputSurface implementation. 57 // cc::OutputSurface implementation.
58 bool BindToClient(cc::OutputSurfaceClient* client) override;
59 void EnsureBackbuffer() override;
60 void DiscardBackbuffer() override;
61 void BindFramebuffer() override;
58 void SwapBuffers(cc::CompositorFrame frame) override; 62 void SwapBuffers(cc::CompositorFrame frame) override;
59 bool BindToClient(cc::OutputSurfaceClient* client) override;
60 uint32_t GetFramebufferCopyTextureFormat() override; 63 uint32_t GetFramebufferCopyTextureFormat() override;
64 bool IsDisplayedAsOverlayPlane() const override;
65 unsigned GetOverlayTextureId() const override;
66 bool SurfaceIsSuspendForRecycle() const override;
61 67
62 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); 68 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
63 69
64 base::CancelableCallback<void( 70 base::CancelableCallback<void(
65 const std::vector<ui::LatencyInfo>&, 71 const std::vector<ui::LatencyInfo>&,
66 gfx::SwapResult, 72 gfx::SwapResult,
67 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> 73 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>
68 swap_buffers_completion_callback_; 74 swap_buffers_completion_callback_;
69 base::CancelableCallback<void(base::TimeTicks timebase, 75 base::CancelableCallback<void(base::TimeTicks timebase,
70 base::TimeDelta interval)> 76 base::TimeDelta interval)>
71 update_vsync_parameters_callback_; 77 update_vsync_parameters_callback_;
72 78
73 std::unique_ptr<ReflectorTexture> reflector_texture_; 79 std::unique_ptr<ReflectorTexture> reflector_texture_;
74 80
75 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 81 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
76 }; 82 };
77 83
78 } // namespace content 84 } // namespace content
79 85
80 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 86 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698