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

Side by Side Diff: skia/ext/opacity_draw_filter.h

Issue 641523002: Replace OVERRIDE with its C++11 counterparts in src/skia (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « skia/ext/event_tracer_impl.cc ('k') | skia/ext/pixel_ref_utils.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 SKIA_EXT_OPACITY_DRAW_FILTER_H 5 #ifndef SKIA_EXT_OPACITY_DRAW_FILTER_H
6 #define SKIA_EXT_OPACITY_DRAW_FILTER_H 6 #define SKIA_EXT_OPACITY_DRAW_FILTER_H
7 7
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "third_party/skia/include/core/SkDrawFilter.h" 9 #include "third_party/skia/include/core/SkDrawFilter.h"
10 10
11 class SkPaint; 11 class SkPaint;
12 12
13 namespace skia { 13 namespace skia {
14 14
15 // This filter allows setting an opacity on every draw call to a canvas, and to 15 // This filter allows setting an opacity on every draw call to a canvas, and to
16 // disable image filtering. Note that the opacity setting is only correct in 16 // disable image filtering. Note that the opacity setting is only correct in
17 // very limited conditions: when there is only zero or one opaque, nonlayer 17 // very limited conditions: when there is only zero or one opaque, nonlayer
18 // draw for every pixel in the surface. 18 // draw for every pixel in the surface.
19 class SK_API OpacityDrawFilter : public SkDrawFilter { 19 class SK_API OpacityDrawFilter : public SkDrawFilter {
20 public: 20 public:
21 OpacityDrawFilter(float opacity, bool disable_image_filtering); 21 OpacityDrawFilter(float opacity, bool disable_image_filtering);
22 virtual ~OpacityDrawFilter(); 22 virtual ~OpacityDrawFilter();
23 virtual bool filter(SkPaint* paint, SkDrawFilter::Type type) OVERRIDE; 23 virtual bool filter(SkPaint* paint, SkDrawFilter::Type type) override;
24 24
25 private: 25 private:
26 int alpha_; 26 int alpha_;
27 bool disable_image_filtering_; 27 bool disable_image_filtering_;
28 }; 28 };
29 29
30 } // namespace skia 30 } // namespace skia
31 31
32 #endif // SKIA_EXT_OPACITY_DRAW_FILTER_H 32 #endif // SKIA_EXT_OPACITY_DRAW_FILTER_H
33 33
OLDNEW
« no previous file with comments | « skia/ext/event_tracer_impl.cc ('k') | skia/ext/pixel_ref_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698