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

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

Issue 2374183006: Remove GLFrameData from CompositorFrame. (Closed)
Patch Set: Rebase + fix includes. 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 58 bool BindToClient(cc::OutputSurfaceClient* client) override;
59 void EnsureBackbuffer() override; 59 void EnsureBackbuffer() override;
60 void DiscardBackbuffer() override; 60 void DiscardBackbuffer() override;
61 void BindFramebuffer() override; 61 void BindFramebuffer() override;
62 void SwapBuffers(cc::CompositorFrame frame) override; 62 void SwapBuffers(cc::OutputSurfaceFrame frame) override;
63 uint32_t GetFramebufferCopyTextureFormat() override; 63 uint32_t GetFramebufferCopyTextureFormat() override;
64 bool IsDisplayedAsOverlayPlane() const override; 64 bool IsDisplayedAsOverlayPlane() const override;
65 unsigned GetOverlayTextureId() const override; 65 unsigned GetOverlayTextureId() const override;
66 bool SurfaceIsSuspendForRecycle() const override; 66 bool SurfaceIsSuspendForRecycle() const override;
67 67
68 gpu::CommandBufferProxyImpl* GetCommandBufferProxy(); 68 gpu::CommandBufferProxyImpl* GetCommandBufferProxy();
69 69
70 base::CancelableCallback<void( 70 base::CancelableCallback<void(
71 const std::vector<ui::LatencyInfo>&, 71 const std::vector<ui::LatencyInfo>&,
72 gfx::SwapResult, 72 gfx::SwapResult,
73 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)> 73 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac)>
74 swap_buffers_completion_callback_; 74 swap_buffers_completion_callback_;
75 base::CancelableCallback<void(base::TimeTicks timebase, 75 base::CancelableCallback<void(base::TimeTicks timebase,
76 base::TimeDelta interval)> 76 base::TimeDelta interval)>
77 update_vsync_parameters_callback_; 77 update_vsync_parameters_callback_;
78 78
79 std::unique_ptr<ReflectorTexture> reflector_texture_; 79 std::unique_ptr<ReflectorTexture> reflector_texture_;
80 80
81 private:
danakj 2016/10/04 21:58:40 Good call!
81 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 82 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
82 }; 83 };
83 84
84 } // namespace content 85 } // namespace content
85 86
86 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 87 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698