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

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

Issue 1097223002: Mac: Fix black flashing during tab switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Wait for swap to draw frames Created 5 years, 8 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/browser_compositor_view_mac.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/threading/non_thread_safe.h" 8 #include "base/threading/non_thread_safe.h"
9 #include "cc/output/output_surface.h" 9 #include "cc/output/output_surface.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 23 matching lines...) Expand all
34 void OnUpdateVSyncParameters(base::TimeTicks timebase, 34 void OnUpdateVSyncParameters(base::TimeTicks timebase,
35 base::TimeDelta interval) override; 35 base::TimeDelta interval) override;
36 36
37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase, 37 void OnUpdateVSyncParametersFromGpu(base::TimeTicks tiembase,
38 base::TimeDelta interval); 38 base::TimeDelta interval);
39 39
40 void SetReflector(ReflectorImpl* reflector); 40 void SetReflector(ReflectorImpl* reflector);
41 41
42 #if defined(OS_MACOSX) 42 #if defined(OS_MACOSX)
43 virtual void OnSurfaceDisplayed() = 0; 43 virtual void OnSurfaceDisplayed() = 0;
44 virtual void OnSurfaceRecycled() = 0; 44 virtual void SetSurfaceSuspendedForRecycle(bool suspended) = 0;
45 virtual bool ShouldNotShowFramesAfterRecycle() const = 0; 45 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle() const = 0;
46 #endif 46 #endif
47 47
48 protected: 48 protected:
49 // Constructor used by the accelerated implementation. 49 // Constructor used by the accelerated implementation.
50 BrowserCompositorOutputSurface( 50 BrowserCompositorOutputSurface(
51 const scoped_refptr<cc::ContextProvider>& context, 51 const scoped_refptr<cc::ContextProvider>& context,
52 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 52 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
53 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 53 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
54 overlay_candidate_validator); 54 overlay_candidate_validator);
55 55
(...skipping 10 matching lines...) Expand all
66 66
67 scoped_ptr<BrowserCompositorOverlayCandidateValidator> 67 scoped_ptr<BrowserCompositorOverlayCandidateValidator>
68 overlay_candidate_validator_; 68 overlay_candidate_validator_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface); 70 DISALLOW_COPY_AND_ASSIGN(BrowserCompositorOutputSurface);
71 }; 71 };
72 72
73 } // namespace content 73 } // namespace content
74 74
75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ 75 #endif // CONTENT_BROWSER_COMPOSITOR_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/compositor/browser_compositor_view_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698