Chromium Code Reviews

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

Issue 2769823002: Add decode() functionality to image elements. (Closed)
Patch Set: update Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
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 17 matching lines...)
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 "WebSize.h" 35 #include "WebSize.h"
36 #include "cc/surfaces/frame_sink_id.h" 36 #include "cc/surfaces/frame_sink_id.h"
37 37
38 #include "third_party/skia/include/core/SkImage.h"
39 #include "third_party/skia/include/core/SkRefCnt.h"
40
38 namespace cc { 41 namespace cc {
39 class AnimationHost; 42 class AnimationHost;
40 } 43 }
41 44
42 namespace blink { 45 namespace blink {
43 46
44 class WebCompositeAndReadbackAsyncCallback; 47 class WebCompositeAndReadbackAsyncCallback;
45 class WebLayer; 48 class WebLayer;
46 class WebLayoutAndPaintAsyncCallback; 49 class WebLayoutAndPaintAsyncCallback;
47 struct WebPoint; 50 struct WebPoint;
(...skipping 126 matching lines...)
174 virtual void SetShowFPSCounter(bool) {} 177 virtual void SetShowFPSCounter(bool) {}
175 178
176 // Toggles the paint rects in the HUD layer 179 // Toggles the paint rects in the HUD layer
177 virtual void SetShowPaintRects(bool) {} 180 virtual void SetShowPaintRects(bool) {}
178 181
179 // Toggles the debug borders on layers 182 // Toggles the debug borders on layers
180 virtual void SetShowDebugBorders(bool) {} 183 virtual void SetShowDebugBorders(bool) {}
181 184
182 // Toggles scroll bottleneck rects on the HUD layer 185 // Toggles scroll bottleneck rects on the HUD layer
183 virtual void SetShowScrollBottleneckRects(bool) {} 186 virtual void SetShowScrollBottleneckRects(bool) {}
187
188 virtual void RequestDecode(sk_sp<SkImage> image,
189 const base::Callback<void(bool)>& callback) {}
184 }; 190 };
185 191
186 } // namespace blink 192 } // namespace blink
187 193
188 #endif // WebLayerTreeView_h 194 #endif // WebLayerTreeView_h
OLDNEW

Powered by Google App Engine