OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 18 matching lines...) Expand all Loading... |
29 #include "WebBrowserControlsState.h" | 29 #include "WebBrowserControlsState.h" |
30 #include "WebColor.h" | 30 #include "WebColor.h" |
31 #include "WebCommon.h" | 31 #include "WebCommon.h" |
32 #include "WebCompositorMutatorClient.h" | 32 #include "WebCompositorMutatorClient.h" |
33 #include "WebEventListenerProperties.h" | 33 #include "WebEventListenerProperties.h" |
34 #include "WebFloatPoint.h" | 34 #include "WebFloatPoint.h" |
35 #include "WebSize.h" | 35 #include "WebSize.h" |
36 #include "base/callback.h" | 36 #include "base/callback.h" |
37 #include "cc/surfaces/frame_sink_id.h" | 37 #include "cc/surfaces/frame_sink_id.h" |
38 | 38 |
| 39 #include "third_party/skia/include/core/SkImage.h" |
| 40 #include "third_party/skia/include/core/SkRefCnt.h" |
| 41 |
39 namespace cc { | 42 namespace cc { |
40 class AnimationHost; | 43 class AnimationHost; |
41 } | 44 } |
42 | 45 |
43 namespace blink { | 46 namespace blink { |
44 | 47 |
45 class WebCompositeAndReadbackAsyncCallback; | 48 class WebCompositeAndReadbackAsyncCallback; |
46 class WebLayer; | 49 class WebLayer; |
47 class WebLayoutAndPaintAsyncCallback; | 50 class WebLayoutAndPaintAsyncCallback; |
48 struct WebPoint; | 51 struct WebPoint; |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 186 |
184 // Toggles the debug borders on layers | 187 // Toggles the debug borders on layers |
185 virtual void SetShowDebugBorders(bool) {} | 188 virtual void SetShowDebugBorders(bool) {} |
186 | 189 |
187 // Toggles scroll bottleneck rects on the HUD layer | 190 // Toggles scroll bottleneck rects on the HUD layer |
188 virtual void SetShowScrollBottleneckRects(bool) {} | 191 virtual void SetShowScrollBottleneckRects(bool) {} |
189 | 192 |
190 // ReportTimeCallback is a callback that should be fired when the | 193 // ReportTimeCallback is a callback that should be fired when the |
191 // corresponding Swap completes (either with DidSwap or DidNotSwap). | 194 // corresponding Swap completes (either with DidSwap or DidNotSwap). |
192 virtual void NotifySwapTime(ReportTimeCallback callback) {} | 195 virtual void NotifySwapTime(ReportTimeCallback callback) {} |
| 196 |
| 197 virtual void RequestDecode(sk_sp<SkImage> image, |
| 198 const base::Callback<void(bool)>& callback) {} |
193 }; | 199 }; |
194 | 200 |
195 } // namespace blink | 201 } // namespace blink |
196 | 202 |
197 #endif // WebLayerTreeView_h | 203 #endif // WebLayerTreeView_h |
OLD | NEW |