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 <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/ref_counted.h" | 10 #include "base/memory/ref_counted.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "build/build_config.h" |
12 #include "cc/surfaces/surface_id_allocator.h" | 13 #include "cc/surfaces/surface_id_allocator.h" |
13 #include "content/common/content_export.h" | 14 #include "content/common/content_export.h" |
14 #include "ui/events/latency_info.h" | 15 #include "ui/events/latency_info.h" |
15 #include "ui/gfx/native_widget_types.h" | 16 #include "ui/gfx/native_widget_types.h" |
16 | 17 |
17 namespace cc { | 18 namespace cc { |
18 class SurfaceManager; | 19 class SurfaceManager; |
19 } | 20 } |
20 | 21 |
21 namespace gfx { | 22 namespace gfx { |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 // Used by GpuProcessHostUIShim to determine if a frame should not be | 102 // Used by GpuProcessHostUIShim to determine if a frame should not be |
102 // displayed because it is targetted to an NSView that has been disconnected. | 103 // displayed because it is targetted to an NSView that has been disconnected. |
103 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle( | 104 virtual bool SurfaceShouldNotShowFramesAfterSuspendForRecycle( |
104 int surface_id) const = 0; | 105 int surface_id) const = 0; |
105 #endif | 106 #endif |
106 }; | 107 }; |
107 | 108 |
108 } // namespace content | 109 } // namespace content |
109 | 110 |
110 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ | 111 #endif // CONTENT_BROWSER_COMPOSITOR_IMAGE_TRANSPORT_FACTORY_H_ |
OLD | NEW |