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

Side by Side Diff: cc/output/delegating_renderer.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
« no previous file with comments | « cc/output/bsp_walk_action.h ('k') | cc/output/delegating_renderer_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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CC_OUTPUT_DELEGATING_RENDERER_H_ 5 #ifndef CC_OUTPUT_DELEGATING_RENDERER_H_
6 #define CC_OUTPUT_DELEGATING_RENDERER_H_ 6 #define CC_OUTPUT_DELEGATING_RENDERER_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
11 #include "cc/output/renderer.h" 11 #include "cc/output/renderer.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class OutputSurface; 15 class OutputSurface;
16 class ResourceProvider; 16 class ResourceProvider;
17 17
18 class CC_EXPORT DelegatingRenderer : public Renderer { 18 class CC_EXPORT DelegatingRenderer : public Renderer {
19 public: 19 public:
20 static scoped_ptr<DelegatingRenderer> Create( 20 static scoped_ptr<DelegatingRenderer> Create(
21 RendererClient* client, 21 RendererClient* client,
22 const LayerTreeSettings* settings, 22 const LayerTreeSettings* settings,
23 OutputSurface* output_surface, 23 OutputSurface* output_surface,
24 ResourceProvider* resource_provider); 24 ResourceProvider* resource_provider);
25 virtual ~DelegatingRenderer(); 25 virtual ~DelegatingRenderer();
26 26
27 virtual const RendererCapabilitiesImpl& Capabilities() const OVERRIDE; 27 virtual const RendererCapabilitiesImpl& Capabilities() const override;
28 28
29 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order, 29 virtual void DrawFrame(RenderPassList* render_passes_in_draw_order,
30 float device_scale_factor, 30 float device_scale_factor,
31 const gfx::Rect& device_viewport_rect, 31 const gfx::Rect& device_viewport_rect,
32 const gfx::Rect& device_clip_rect, 32 const gfx::Rect& device_clip_rect,
33 bool disable_picture_quad_image_filtering) OVERRIDE; 33 bool disable_picture_quad_image_filtering) override;
34 34
35 virtual void Finish() OVERRIDE {} 35 virtual void Finish() override {}
36 36
37 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) OVERRIDE; 37 virtual void SwapBuffers(const CompositorFrameMetadata& metadata) override;
38 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck&) OVERRIDE; 38 virtual void ReceiveSwapBuffersAck(const CompositorFrameAck&) override;
39 39
40 private: 40 private:
41 DelegatingRenderer(RendererClient* client, 41 DelegatingRenderer(RendererClient* client,
42 const LayerTreeSettings* settings, 42 const LayerTreeSettings* settings,
43 OutputSurface* output_surface, 43 OutputSurface* output_surface,
44 ResourceProvider* resource_provider); 44 ResourceProvider* resource_provider);
45 45
46 virtual void DidChangeVisibility() OVERRIDE; 46 virtual void DidChangeVisibility() override;
47 47
48 OutputSurface* output_surface_; 48 OutputSurface* output_surface_;
49 ResourceProvider* resource_provider_; 49 ResourceProvider* resource_provider_;
50 RendererCapabilitiesImpl capabilities_; 50 RendererCapabilitiesImpl capabilities_;
51 scoped_ptr<DelegatedFrameData> delegated_frame_data_; 51 scoped_ptr<DelegatedFrameData> delegated_frame_data_;
52 52
53 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer); 53 DISALLOW_COPY_AND_ASSIGN(DelegatingRenderer);
54 }; 54 };
55 55
56 } // namespace cc 56 } // namespace cc
57 57
58 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_ 58 #endif // CC_OUTPUT_DELEGATING_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/bsp_walk_action.h ('k') | cc/output/delegating_renderer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698