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

Unified Diff: ui/gfx/color_analysis.h

Issue 7328011: Introduce ui.dll / libui.so for the component build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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/codec/png_codec.h ('k') | ui/gfx/color_utils.h » ('j') | ui/ui.gyp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/color_analysis.h
===================================================================
--- ui/gfx/color_analysis.h (revision 92815)
+++ ui/gfx/color_analysis.h (working copy)
@@ -11,6 +11,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/ref_counted_memory.h"
#include "third_party/skia/include/core/SkColor.h"
+#include "ui/ui_api.h"
namespace color_utils {
@@ -18,7 +19,7 @@
// stubbing out for things like unit tests. Might be useful to pass more
// arguments into the GetSample method in the future (such as which
// cluster is being worked on, etc.).
-class KMeanImageSampler {
+class UI_API KMeanImageSampler {
public:
virtual int GetSample(int width, int height) = 0;
@@ -37,7 +38,7 @@
};
// This sampler will pick pixels from an evenly spaced grid.
-class GridSampler : public KMeanImageSampler {
+class UI_API GridSampler : public KMeanImageSampler {
public:
GridSampler();
virtual ~GridSampler();
@@ -102,10 +103,10 @@
uint32_t darkness_limit,
uint32_t brightness_limit);
-SkColor CalculateKMeanColorOfPNG(scoped_refptr<RefCountedMemory> png,
- uint32_t darkness_limit,
- uint32_t brightness_limit,
- KMeanImageSampler& sampler);
+UI_API SkColor CalculateKMeanColorOfPNG(scoped_refptr<RefCountedMemory> png,
+ uint32_t darkness_limit,
+ uint32_t brightness_limit,
+ KMeanImageSampler& sampler);
} // namespace color_utils
« no previous file with comments | « ui/gfx/codec/png_codec.h ('k') | ui/gfx/color_utils.h » ('j') | ui/ui.gyp » ('J')

Powered by Google App Engine
This is Rietveld 408576698