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

Side by Side Diff: cc/resources/content_layer_updater.h

Issue 628443002: replace OVERRIDE and FINAL with override and final in cc/ (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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 5 #ifndef CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 6 #define CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
7 7
8 #include "cc/base/cc_export.h" 8 #include "cc/base/cc_export.h"
9 #include "cc/resources/layer_updater.h" 9 #include "cc/resources/layer_updater.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 11
12 class SkCanvas; 12 class SkCanvas;
13 13
14 namespace cc { 14 namespace cc {
15 15
16 class LayerPainter; 16 class LayerPainter;
17 class RenderingStatsInstrumentation; 17 class RenderingStatsInstrumentation;
18 18
19 // Base class for BitmapContentLayerUpdater and 19 // Base class for BitmapContentLayerUpdater and
20 // SkPictureContentLayerUpdater that reduces code duplication between 20 // SkPictureContentLayerUpdater that reduces code duplication between
21 // their respective PaintContents implementations. 21 // their respective PaintContents implementations.
22 class CC_EXPORT ContentLayerUpdater : public LayerUpdater { 22 class CC_EXPORT ContentLayerUpdater : public LayerUpdater {
23 public: 23 public:
24 void set_rendering_stats_instrumentation(RenderingStatsInstrumentation* rsi); 24 void set_rendering_stats_instrumentation(RenderingStatsInstrumentation* rsi);
25 virtual void SetOpaque(bool opaque) OVERRIDE; 25 virtual void SetOpaque(bool opaque) override;
26 virtual void SetFillsBoundsCompletely(bool fills_bounds) OVERRIDE; 26 virtual void SetFillsBoundsCompletely(bool fills_bounds) override;
27 virtual void SetBackgroundColor(SkColor background_color) OVERRIDE; 27 virtual void SetBackgroundColor(SkColor background_color) override;
28 28
29 protected: 29 protected:
30 ContentLayerUpdater(scoped_ptr<LayerPainter> painter, 30 ContentLayerUpdater(scoped_ptr<LayerPainter> painter,
31 RenderingStatsInstrumentation* stats_instrumentation, 31 RenderingStatsInstrumentation* stats_instrumentation,
32 int layer_id); 32 int layer_id);
33 virtual ~ContentLayerUpdater(); 33 virtual ~ContentLayerUpdater();
34 34
35 // Paints the contents. |content_size| size of the underlying layer in 35 // Paints the contents. |content_size| size of the underlying layer in
36 // layer's content space. |paint_rect| bounds to paint in content space of the 36 // layer's content space. |paint_rect| bounds to paint in content space of the
37 // layer. Both |content_size| and |paint_rect| are in pixels. 37 // layer. Both |content_size| and |paint_rect| are in pixels.
(...skipping 23 matching lines...) Expand all
61 gfx::Rect paint_rect_; 61 gfx::Rect paint_rect_;
62 scoped_ptr<LayerPainter> painter_; 62 scoped_ptr<LayerPainter> painter_;
63 SkColor background_color_; 63 SkColor background_color_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater); 65 DISALLOW_COPY_AND_ASSIGN(ContentLayerUpdater);
66 }; 66 };
67 67
68 } // namespace cc 68 } // namespace cc
69 69
70 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_ 70 #endif // CC_RESOURCES_CONTENT_LAYER_UPDATER_H_
OLDNEW
« no previous file with comments | « cc/resources/bitmap_skpicture_content_layer_updater.h ('k') | cc/resources/gpu_raster_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698