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

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

Issue 2643623004: content: Add overdraw feedback support for X11 ChromeOS builds. (Closed)
Patch Set: add todo Created 3 years, 11 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
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/macros.h" 10 #include "base/macros.h"
(...skipping 22 matching lines...) Expand all
33 // Adapts a WebGraphicsContext3DCommandBufferImpl into a 33 // Adapts a WebGraphicsContext3DCommandBufferImpl into a
34 // cc::OutputSurface that also handles vsync parameter updates 34 // cc::OutputSurface that also handles vsync parameter updates
35 // arriving from the GPU process. 35 // arriving from the GPU process.
36 class GpuBrowserCompositorOutputSurface 36 class GpuBrowserCompositorOutputSurface
37 : public BrowserCompositorOutputSurface { 37 : public BrowserCompositorOutputSurface {
38 public: 38 public:
39 GpuBrowserCompositorOutputSurface( 39 GpuBrowserCompositorOutputSurface(
40 scoped_refptr<ui::ContextProviderCommandBuffer> context, 40 scoped_refptr<ui::ContextProviderCommandBuffer> context,
41 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, 41 const UpdateVSyncParametersCallback& update_vsync_parameters_callback,
42 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 42 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
43 overlay_candidate_validator); 43 overlay_candidate_validator,
44 bool support_stencil);
44 45
45 ~GpuBrowserCompositorOutputSurface() override; 46 ~GpuBrowserCompositorOutputSurface() override;
46 47
47 // Called when a swap completion is sent from the GPU process. 48 // Called when a swap completion is sent from the GPU process.
48 // The argument |params_mac| is used to communicate parameters needed on Mac 49 // The argument |params_mac| is used to communicate parameters needed on Mac
49 // to display the CALayer for the swap in the browser process. 50 // to display the CALayer for the swap in the browser process.
50 // TODO(ccameron): Remove |params_mac| when the CALayer tree is hosted in the 51 // TODO(ccameron): Remove |params_mac| when the CALayer tree is hosted in the
51 // browser process. 52 // browser process.
52 virtual void OnGpuSwapBuffersCompleted( 53 virtual void OnGpuSwapBuffersCompleted(
53 const std::vector<ui::LatencyInfo>& latency_info, 54 const std::vector<ui::LatencyInfo>& latency_info,
(...skipping 29 matching lines...) Expand all
83 std::unique_ptr<ReflectorTexture> reflector_texture_; 84 std::unique_ptr<ReflectorTexture> reflector_texture_;
84 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_; 85 base::WeakPtrFactory<GpuBrowserCompositorOutputSurface> weak_ptr_factory_;
85 86
86 private: 87 private:
87 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface); 88 DISALLOW_COPY_AND_ASSIGN(GpuBrowserCompositorOutputSurface);
88 }; 89 };
89 90
90 } // namespace content 91 } // namespace content
91 92
92 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 93 #endif // CONTENT_BROWSER_COMPOSITOR_GPU_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698