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

Side by Side Diff: content/browser/compositor/image_transport_factory.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
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_IMAGE_TRANSPORT_FACTORY_H_ 5 #ifndef CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ 6 #define CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 #if defined(OS_MACOSX) 89 #if defined(OS_MACOSX)
90 // Called with |suspended| as true when the ui::Compositor has been 90 // Called with |suspended| as true when the ui::Compositor has been
91 // disconnected from an NSView and may be attached to another one. Called 91 // disconnected from an NSView and may be attached to another one. Called
92 // with |suspended| as false after the ui::Compositor has been connected to 92 // with |suspended| as false after the ui::Compositor has been connected to
93 // a new NSView and the first commit targeted at the new NSView has 93 // a new NSView and the first commit targeted at the new NSView has
94 // completed. This ensures that content and frames intended for the old 94 // completed. This ensures that content and frames intended for the old
95 // NSView will not flash in the new NSView. 95 // NSView will not flash in the new NSView.
96 virtual void SetCompositorSuspendedForRecycle(ui::Compositor* compositor, 96 virtual void SetCompositorSuspendedForRecycle(ui::Compositor* compositor,
97 bool suspended) = 0; 97 bool suspended) = 0;
98 // Used by GpuProcessHostUIShim to determine if a frame should not be
99 // displayed because it is targetted to an NSView that has been disconnected.
100 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle(
101 gpu::SurfaceHandle surface_handle) const = 0;
102 #endif 98 #endif
103 }; 99 };
104 100
105 } // namespace content 101 } // namespace content
106 102
107 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ 103 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698