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

Side by Side Diff: third_party/WebKit/public/platform/WebLayerTreeView.h

Issue 2929493002: Plumb PaintImage for the img.decode instead of SkImage. (Closed)
Patch Set: Created 3 years, 6 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 | « third_party/WebKit/Source/web/WebViewImpl.cpp ('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 /* 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 14 matching lines...) Expand all
25 25
26 #ifndef WebLayerTreeView_h 26 #ifndef WebLayerTreeView_h
27 #define WebLayerTreeView_h 27 #define WebLayerTreeView_h
28 28
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 "WebImageLayer.h"
35 #include "WebSize.h" 36 #include "WebSize.h"
36 #include "base/callback.h" 37 #include "base/callback.h"
37 #include "cc/surfaces/frame_sink_id.h" 38 #include "cc/surfaces/frame_sink_id.h"
38 39
39 #include "third_party/skia/include/core/SkImage.h" 40 #include "third_party/skia/include/core/SkImage.h"
40 #include "third_party/skia/include/core/SkRefCnt.h" 41 #include "third_party/skia/include/core/SkRefCnt.h"
41 42
42 namespace cc { 43 namespace cc {
43 class AnimationHost; 44 class AnimationHost;
44 } 45 }
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 // Toggles the debug borders on layers 188 // Toggles the debug borders on layers
188 virtual void SetShowDebugBorders(bool) {} 189 virtual void SetShowDebugBorders(bool) {}
189 190
190 // Toggles scroll bottleneck rects on the HUD layer 191 // Toggles scroll bottleneck rects on the HUD layer
191 virtual void SetShowScrollBottleneckRects(bool) {} 192 virtual void SetShowScrollBottleneckRects(bool) {}
192 193
193 // ReportTimeCallback is a callback that should be fired when the 194 // ReportTimeCallback is a callback that should be fired when the
194 // corresponding Swap completes (either with DidSwap or DidNotSwap). 195 // corresponding Swap completes (either with DidSwap or DidNotSwap).
195 virtual void NotifySwapTime(ReportTimeCallback callback) {} 196 virtual void NotifySwapTime(ReportTimeCallback callback) {}
196 197
197 virtual void RequestDecode(sk_sp<SkImage> image, 198 virtual void RequestDecode(const PaintImage& image,
198 const base::Callback<void(bool)>& callback) {} 199 const base::Callback<void(bool)>& callback) {}
199 }; 200 };
200 201
201 } // namespace blink 202 } // namespace blink
202 203
203 #endif // WebLayerTreeView_h 204 #endif // WebLayerTreeView_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698