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

Unified Diff: ui/gfx/skia_paint_util.h

Issue 2640983002: Rename paint data structures (Closed)
Patch Set: DrawingDisplayItem Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/skia_paint_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/skia_paint_util.h
diff --git a/ui/gfx/skia_paint_util.h b/ui/gfx/skia_paint_util.h
index 2ec10ff621c4ecc742b24a978c5d07d9f2b7ca9d..1cf20068847dbeb7e23253204b32075ce3ed8a37 100644
--- a/ui/gfx/skia_paint_util.h
+++ b/ui/gfx/skia_paint_util.h
@@ -7,7 +7,7 @@
#include <vector>
-#include "third_party/skia/include/core/SkShader.h"
+#include "cc/paint/paint_shader.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/shadow_value.h"
@@ -25,24 +25,24 @@ class ImageSkiaRep;
// TODO(pkotwicz): Allow shader's local matrix to be changed after the shader
// is created.
//
-GFX_EXPORT sk_sp<SkShader> CreateImageRepShader(
+GFX_EXPORT sk_sp<cc::PaintShader> CreateImageRepShader(
const gfx::ImageSkiaRep& image_rep,
- SkShader::TileMode tile_mode,
+ cc::PaintShader::TileMode tile_mode,
const SkMatrix& local_matrix);
// Creates a bitmap shader for the image rep with the passed in scale factor.
-GFX_EXPORT sk_sp<SkShader> CreateImageRepShaderForScale(
+GFX_EXPORT sk_sp<cc::PaintShader> CreateImageRepShaderForScale(
const gfx::ImageSkiaRep& image_rep,
- SkShader::TileMode tile_mode,
+ cc::PaintShader::TileMode tile_mode,
const SkMatrix& local_matrix,
SkScalar scale);
// Creates a vertical gradient shader. The caller owns the shader.
// Example usage to avoid leaks:
-GFX_EXPORT sk_sp<SkShader> CreateGradientShader(int start_point,
- int end_point,
- SkColor start_color,
- SkColor end_color);
+GFX_EXPORT sk_sp<cc::PaintShader> CreateGradientShader(int start_point,
+ int end_point,
+ SkColor start_color,
+ SkColor end_color);
// Creates a draw looper to generate |shadows|. The caller owns the draw looper.
// NULL is returned if |shadows| is empty since no draw looper is needed in
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/skia_paint_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698