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

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

Issue 1227233002: Mac: Don't draw a cc::Surface while suspended (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix other platform compile Created 5 years, 5 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 | « content/browser/compositor/gpu_browser_compositor_output_surface.h ('k') | no next file » | 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 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h" 5 #include "content/browser/compositor/gpu_browser_compositor_output_surface.h"
6 6
7 #include "cc/output/compositor_frame.h" 7 #include "cc/output/compositor_frame.h"
8 #include "cc/output/output_surface_client.h" 8 #include "cc/output/output_surface_client.h"
9 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h" 9 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h"
10 #include "content/browser/compositor/reflector_impl.h" 10 #include "content/browser/compositor/reflector_impl.h"
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 } 146 }
147 } 147 }
148 } 148 }
149 149
150 bool GpuBrowserCompositorOutputSurface:: 150 bool GpuBrowserCompositorOutputSurface::
151 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const { 151 SurfaceShouldNotShowFramesAfterSuspendForRecycle() const {
152 return should_show_frames_state_ != SHOULD_SHOW_FRAMES; 152 return should_show_frames_state_ != SHOULD_SHOW_FRAMES;
153 } 153 }
154 #endif 154 #endif
155 155
156 bool GpuBrowserCompositorOutputSurface::SurfaceIsSuspendForRecycle() const {
157 #if defined(OS_MACOSX)
158 return should_show_frames_state_ == SHOULD_NOT_SHOW_FRAMES_SUSPENDED;
159 #else
160 return false;
161 #endif
162 }
163
156 } // namespace content 164 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/compositor/gpu_browser_compositor_output_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698