| OLD | NEW |
| 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 Loading... |
| 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_ |
| OLD | NEW |