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

Side by Side Diff: content/browser/compositor/software_browser_compositor_output_surface.cc

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
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 #include "content/browser/compositor/software_browser_compositor_output_surface. h" 5 #include "content/browser/compositor/software_browser_compositor_output_surface. h"
6 6
7 #include "base/memory/ref_counted.h" 7 #include "base/memory/ref_counted.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 PostSwapBuffersComplete(); 53 PostSwapBuffersComplete();
54 client_->DidSwapBuffers(); 54 client_->DidSwapBuffers();
55 } 55 }
56 56
57 #if defined(OS_MACOSX) 57 #if defined(OS_MACOSX)
58 void SoftwareBrowserCompositorOutputSurface::OnSurfaceDisplayed() { 58 void SoftwareBrowserCompositorOutputSurface::OnSurfaceDisplayed() {
59 // See GpuBrowserCompositorOutputSurface for when and how this is used. 59 // See GpuBrowserCompositorOutputSurface for when and how this is used.
60 NOTREACHED() << "Not expected for software surfaces."; 60 NOTREACHED() << "Not expected for software surfaces.";
61 } 61 }
62 62
63 void SoftwareBrowserCompositorOutputSurface::OnSurfaceRecycled() { 63 void SoftwareBrowserCompositorOutputSurface::SetSurfaceSuspendedForRecycle(
64 bool suspended) {
64 } 65 }
65 66
66 bool SoftwareBrowserCompositorOutputSurface::ShouldNotShowFramesAfterRecycle() 67 bool SoftwareBrowserCompositorOutputSurface::
67 const { 68 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const {
68 return false; 69 return false;
69 } 70 }
70 #endif 71 #endif
71 72
72 } // namespace content 73 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698