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

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

Issue 595593002: Splitting of layers for correct intersections (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed minor compile issues Created 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_UTIL_H_ 5 #ifndef UI_GFX_SKIA_UTIL_H_
6 #define UI_GFX_SKIA_UTIL_H_ 6 #define UI_GFX_SKIA_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "skia/ext/refptr.h" 11 #include "skia/ext/refptr.h"
12 #include "third_party/skia/include/core/SkColor.h" 12 #include "third_party/skia/include/core/SkColor.h"
13 #include "third_party/skia/include/core/SkRect.h" 13 #include "third_party/skia/include/core/SkRect.h"
14 #include "third_party/skia/include/core/SkShader.h" 14 #include "third_party/skia/include/core/SkShader.h"
15 #include "ui/gfx/geometry/quad_f.h"
15 #include "ui/gfx/geometry/size.h" 16 #include "ui/gfx/geometry/size.h"
16 #include "ui/gfx/gfx_export.h" 17 #include "ui/gfx/gfx_export.h"
17 18
18 class SkBitmap; 19 class SkBitmap;
19 class SkDrawLooper; 20 class SkDrawLooper;
20 21
21 namespace gfx { 22 namespace gfx {
22 23
23 class ImageSkiaRep; 24 class ImageSkiaRep;
24 class Rect; 25 class Rect;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 const std::vector<ShadowValue>& shadows); 72 const std::vector<ShadowValue>& shadows);
72 73
73 // Returns true if the two bitmaps contain the same pixels. 74 // Returns true if the two bitmaps contain the same pixels.
74 GFX_EXPORT bool BitmapsAreEqual(const SkBitmap& bitmap1, 75 GFX_EXPORT bool BitmapsAreEqual(const SkBitmap& bitmap1,
75 const SkBitmap& bitmap2); 76 const SkBitmap& bitmap2);
76 77
77 // Converts Skia ARGB format pixels in |skia| to RGBA. 78 // Converts Skia ARGB format pixels in |skia| to RGBA.
78 GFX_EXPORT void ConvertSkiaToRGBA(const unsigned char* skia, 79 GFX_EXPORT void ConvertSkiaToRGBA(const unsigned char* skia,
79 int pixel_width, 80 int pixel_width,
80 unsigned char* rgba); 81 unsigned char* rgba);
82 GFX_EXPORT void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]);
danakj 2015/02/26 18:33:39 move this up closer to the Rect/Size methods?
awoloszyn 2015/02/26 19:03:40 Done.
81 83
82 } // namespace gfx 84 } // namespace gfx
83 85
84 #endif // UI_GFX_SKIA_UTIL_H_ 86 #endif // UI_GFX_SKIA_UTIL_H_
OLDNEW
« ui/gfx/geometry/quad_f.h ('K') | « ui/gfx/geometry/quad_f.h ('k') | ui/gfx/skia_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698