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

Side by Side Diff: ui/gfx/skia_paint_util.h

Issue 2733363002: Update last few users of deprecated CreateShadowDrawLooper and remove (Closed)
Patch Set: Created 3 years, 9 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 | « ui/gfx/shadow_util.cc ('k') | ui/gfx/skia_paint_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2017 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 UI_GFX_SKIA_PAINT_UTIL_H_ 5 #ifndef UI_GFX_SKIA_PAINT_UTIL_H_
6 #define UI_GFX_SKIA_PAINT_UTIL_H_ 6 #define UI_GFX_SKIA_PAINT_UTIL_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "cc/paint/paint_shader.h" 10 #include "cc/paint/paint_shader.h"
(...skipping 29 matching lines...) Expand all
40 // Creates a vertical gradient shader. The caller owns the shader. 40 // Creates a vertical gradient shader. The caller owns the shader.
41 // Example usage to avoid leaks: 41 // Example usage to avoid leaks:
42 GFX_EXPORT sk_sp<cc::PaintShader> CreateGradientShader(int start_point, 42 GFX_EXPORT sk_sp<cc::PaintShader> CreateGradientShader(int start_point,
43 int end_point, 43 int end_point,
44 SkColor start_color, 44 SkColor start_color,
45 SkColor end_color); 45 SkColor end_color);
46 46
47 // Creates a draw looper to generate |shadows|. The caller owns the draw looper. 47 // Creates a draw looper to generate |shadows|. The caller owns the draw looper.
48 // NULL is returned if |shadows| is empty since no draw looper is needed in 48 // NULL is returned if |shadows| is empty since no draw looper is needed in
49 // this case. 49 // this case.
50 // DEPRECATED: See below. TODO(estade): remove this: crbug.com/624175
51 GFX_EXPORT sk_sp<SkDrawLooper> CreateShadowDrawLooper( 50 GFX_EXPORT sk_sp<SkDrawLooper> CreateShadowDrawLooper(
52 const std::vector<ShadowValue>& shadows); 51 const std::vector<ShadowValue>& shadows);
53 52
54 // Creates a draw looper to generate |shadows|. This creates a looper with the
55 // correct amount of blur. Callers of the existing CreateShadowDrawLooper may
56 // rely on the wrong amount of blur being applied but new code should use this
57 // function.
58 GFX_EXPORT sk_sp<SkDrawLooper> CreateShadowDrawLooperCorrectBlur(
59 const std::vector<ShadowValue>& shadows);
60
61 } // namespace gfx 53 } // namespace gfx
62 54
63 #endif // UI_GFX_SKIA_UTIL_H_ 55 #endif // UI_GFX_SKIA_UTIL_H_
OLDNEW
« no previous file with comments | « ui/gfx/shadow_util.cc ('k') | ui/gfx/skia_paint_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698