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

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

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 years, 2 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
« no previous file with comments | « ui/gfx/animation/throb_animation.h ('k') | ui/gfx/color_analysis_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COLOR_ANALYSIS_H_ 5 #ifndef UI_GFX_COLOR_ANALYSIS_H_
6 #define UI_GFX_COLOR_ANALYSIS_H_ 6 #define UI_GFX_COLOR_ANALYSIS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 24 matching lines...) Expand all
35 KMeanImageSampler(); 35 KMeanImageSampler();
36 virtual ~KMeanImageSampler(); 36 virtual ~KMeanImageSampler();
37 }; 37 };
38 38
39 // This sampler will pick pixels from an evenly spaced grid. 39 // This sampler will pick pixels from an evenly spaced grid.
40 class GFX_EXPORT GridSampler : public KMeanImageSampler { 40 class GFX_EXPORT GridSampler : public KMeanImageSampler {
41 public: 41 public:
42 GridSampler(); 42 GridSampler();
43 virtual ~GridSampler(); 43 virtual ~GridSampler();
44 44
45 virtual int GetSample(int width, int height) OVERRIDE; 45 virtual int GetSample(int width, int height) override;
46 46
47 private: 47 private:
48 // The number of times GetSample has been called. 48 // The number of times GetSample has been called.
49 int calls_; 49 int calls_;
50 }; 50 };
51 51
52 // Returns the color in an ARGB |image| that is closest in RGB-space to the 52 // Returns the color in an ARGB |image| that is closest in RGB-space to the
53 // provided |color|. Exported for testing. 53 // provided |color|. Exported for testing.
54 GFX_EXPORT SkColor FindClosestColor(const uint8_t* image, int width, int height, 54 GFX_EXPORT SkColor FindClosestColor(const uint8_t* image, int width, int height,
55 SkColor color); 55 SkColor color);
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // initialized to the required size and type (SkBitmap::kA8_Config). 126 // initialized to the required size and type (SkBitmap::kA8_Config).
127 // Returns true if the conversion succeeded. Note that there might be legitimate 127 // Returns true if the conversion succeeded. Note that there might be legitimate
128 // reasons for the process to fail even if all input was correct. This is a 128 // reasons for the process to fail even if all input was correct. This is a
129 // condition the caller must be able to handle. 129 // condition the caller must be able to handle.
130 GFX_EXPORT bool ComputePrincipalComponentImage(const SkBitmap& source_bitmap, 130 GFX_EXPORT bool ComputePrincipalComponentImage(const SkBitmap& source_bitmap,
131 SkBitmap* target_bitmap); 131 SkBitmap* target_bitmap);
132 132
133 } // namespace color_utils 133 } // namespace color_utils
134 134
135 #endif // UI_GFX_COLOR_ANALYSIS_H_ 135 #endif // UI_GFX_COLOR_ANALYSIS_H_
OLDNEW
« no previous file with comments | « ui/gfx/animation/throb_animation.h ('k') | ui/gfx/color_analysis_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698