Standardize usage of virtual/override/final in skia/
commit9f927559a6cb793f8f4a23160a9b2df5254f4dba
authordcheng <dcheng@chromium.org>
Wed, 22 Oct 2014 17:56:53 +0000 (22 10:56 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 22 Oct 2014 17:57:23 +0000 (22 17:57 +0000)
treee9db28cb382ce56d71f97f576869c06011cbb90e
parent45bd4345afae9ec2a8676b0a13c9dfbf58f8c32d
Standardize usage of virtual/override/final in skia/

The Google C++ style guide states:

  Explicitly annotate overrides of virtual functions or virtual
  destructors with an override or (less frequently) final specifier.
  Older (pre-C++11) code will use the virtual keyword as an inferior
  alternative annotation. For clarity, use exactly one of override,
  final, or virtual when declaring an override.

To better conform to these guidelines, the following constructs have
been rewritten:

- if a base class has a virtual destructor, then:
    virtual ~Foo();                   ->  ~Foo() override;
- virtual void Foo() override;        ->  void Foo() override;
- virtual void Foo() override final;  ->  void Foo() final;

This patch was automatically generated. The clang plugin can generate
fixit hints, which are suggested edits when it is 100% sure it knows how
to fix a problem. The hints from the clang plugin were applied to the
source tree using the tool in https://codereview.chromium.org/598073004.

BUG=417463
R=junov@chromium.org

Review URL: https://codereview.chromium.org/665373005

Cr-Commit-Position: refs/heads/master@{#300701}
skia/ext/SkDiscardableMemory_chrome.h
skia/ext/analysis_canvas.h
skia/ext/benchmarking_canvas.cc
skia/ext/benchmarking_canvas.h
skia/ext/bitmap_platform_device_mac.h
skia/ext/event_tracer_impl.cc
skia/ext/lazy_pixel_ref.h
skia/ext/opacity_draw_filter.h
skia/ext/pixel_ref_utils.cc
skia/ext/pixel_ref_utils_unittest.cc
skia/ext/vector_platform_device_skia.h