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

Side by Side Diff: ui/gfx/image/image_skia_operations.h

Issue 2209053004: Enhance chrome.app.window API with icon property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review v2 + Badge Icon Created 4 years, 4 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_IMAGE_IMAGE_SKIA_OPERATIONS_H_ 5 #ifndef UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
6 #define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ 6 #define UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
7 7
8 #include "skia/ext/image_operations.h" 8 #include "skia/ext/image_operations.h"
9 #include "ui/gfx/color_utils.h" 9 #include "ui/gfx/color_utils.h"
10 #include "ui/gfx/gfx_export.h" 10 #include "ui/gfx/gfx_export.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 // Creates an image with drop shadow defined in |shadows| for |source|. 86 // Creates an image with drop shadow defined in |shadows| for |source|.
87 static ImageSkia CreateImageWithDropShadow(const ImageSkia& source, 87 static ImageSkia CreateImageWithDropShadow(const ImageSkia& source,
88 const ShadowValues& shadows); 88 const ShadowValues& shadows);
89 89
90 // Creates an image which is a rotation of the |source|. |rotation| is the 90 // Creates an image which is a rotation of the |source|. |rotation| is the
91 // amount of clockwise rotation in degrees. 91 // amount of clockwise rotation in degrees.
92 static ImageSkia CreateRotatedImage( 92 static ImageSkia CreateRotatedImage(
93 const ImageSkia& source, 93 const ImageSkia& source,
94 SkBitmapOperations::RotationAmount rotation); 94 SkBitmapOperations::RotationAmount rotation);
95 95
96 // Creates an image by painting the second image as a badge to the first one.
97 // The second image is in the right corner of the first image.
98 static ImageSkia CreateImageWithBadge(const ImageSkia& first,
99 const ImageSkia& second);
stevenjb 2016/08/08 22:26:46 Instead of 'first' and 'second', use 'image' and '
Andra Paraschiv 2016/08/09 11:34:48 Done.
100
96 private: 101 private:
97 ImageSkiaOperations(); // Class for scoping only. 102 ImageSkiaOperations(); // Class for scoping only.
98 }; 103 };
99 104
100 } // namespace gfx 105 } // namespace gfx
101 106
102 #endif // UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_ 107 #endif // UI_GFX_IMAGE_IMAGE_SKIA_OPERATIONS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698