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

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: Fixes from issues introduced by the rebase, added tests for video_quads. Created 5 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 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/gfx_export.h" 16 #include "ui/gfx/gfx_export.h"
16 17
17 class SkBitmap; 18 class SkBitmap;
18 class SkDrawLooper; 19 class SkDrawLooper;
19 20
20 namespace gfx { 21 namespace gfx {
21 22
22 class ImageSkiaRep; 23 class ImageSkiaRep;
23 class Rect; 24 class Rect;
24 class RectF; 25 class RectF;
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 const std::vector<ShadowValue>& shadows); 69 const std::vector<ShadowValue>& shadows);
69 70
70 // Returns true if the two bitmaps contain the same pixels. 71 // Returns true if the two bitmaps contain the same pixels.
71 GFX_EXPORT bool BitmapsAreEqual(const SkBitmap& bitmap1, 72 GFX_EXPORT bool BitmapsAreEqual(const SkBitmap& bitmap1,
72 const SkBitmap& bitmap2); 73 const SkBitmap& bitmap2);
73 74
74 // Converts Skia ARGB format pixels in |skia| to RGBA. 75 // Converts Skia ARGB format pixels in |skia| to RGBA.
75 GFX_EXPORT void ConvertSkiaToRGBA(const unsigned char* skia, 76 GFX_EXPORT void ConvertSkiaToRGBA(const unsigned char* skia,
76 int pixel_width, 77 int pixel_width,
77 unsigned char* rgba); 78 unsigned char* rgba);
79 GFX_EXPORT void QuadFToSkPoints(const gfx::QuadF& quad, SkPoint points[4]);
78 80
79 } // namespace gfx 81 } // namespace gfx
80 82
81 #endif // UI_GFX_SKIA_UTIL_H_ 83 #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