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

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

Issue 1963263002: Fix Mac resize, delete more Mac code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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.h » ('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_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/threading/non_thread_safe.h" 9 #include "base/threading/non_thread_safe.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 // to display the CALayer for the swap in the browser process. 65 // to display the CALayer for the swap in the browser process.
66 // TODO(ccameron): Remove |params_mac| when the CALayer tree is hosted in the 66 // TODO(ccameron): Remove |params_mac| when the CALayer tree is hosted in the
67 // browser process. 67 // browser process.
68 virtual void OnGpuSwapBuffersCompleted( 68 virtual void OnGpuSwapBuffersCompleted(
69 const std::vector<ui::LatencyInfo>& latency_info, 69 const std::vector<ui::LatencyInfo>& latency_info,
70 gfx::SwapResult result, 70 gfx::SwapResult result,
71 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) = 0; 71 const gpu::GpuProcessHostedCALayerTreeParamsMac* params_mac) = 0;
72 72
73 #if defined(OS_MACOSX) 73 #if defined(OS_MACOSX)
74 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0; 74 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
75 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0;
76 #endif 75 #endif
77 76
78 cc::SyntheticBeginFrameSource* begin_frame_source() { 77 cc::SyntheticBeginFrameSource* begin_frame_source() {
79 return synthetic_begin_frame_source_.get(); 78 return synthetic_begin_frame_source_.get();
80 } 79 }
81 80
82 protected: 81 protected:
83 // Constructor used by the accelerated implementation. 82 // Constructor used by the accelerated implementation.
84 BrowserCompositorOutputSurface( 83 BrowserCompositorOutputSurface(
85 const scoped_refptr<cc::ContextProvider>& context, 84 const scoped_refptr<cc::ContextProvider>& context,
(...skipping 30 matching lines...) Expand all
116 115
117 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 116 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
118 overlay_candidate_validator_; 117 overlay_candidate_validator_;
119 118
120 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 119 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
121 }; 120 };
122 121
123 } // namespace content 122 } // namespace content
124 123
125 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 124 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/gpu_browser_compositor_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698