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

Side by Side Diff: mojo/cc/direct_output_surface.h

Issue 668663006: Standardize usage of virtual/override/final in mojo/ (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 | « mojo/cc/context_provider_mojo.h ('k') | mojo/cc/output_surface_mojo.h » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ 5 #ifndef MOJO_CC_DIRECT_OUTPUT_SURFACE_H_
6 #define MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ 6 #define MOJO_CC_DIRECT_OUTPUT_SURFACE_H_
7 7
8 #include "cc/output/output_surface.h" 8 #include "cc/output/output_surface.h"
9 9
10 namespace mojo { 10 namespace mojo {
11 11
12 // An OutputSurface implementation that directly draws and 12 // An OutputSurface implementation that directly draws and
13 // swaps to an actual GL surface. 13 // swaps to an actual GL surface.
14 class DirectOutputSurface : public cc::OutputSurface { 14 class DirectOutputSurface : public cc::OutputSurface {
15 public: 15 public:
16 explicit DirectOutputSurface( 16 explicit DirectOutputSurface(
17 const scoped_refptr<cc::ContextProvider>& context_provider); 17 const scoped_refptr<cc::ContextProvider>& context_provider);
18 virtual ~DirectOutputSurface() override; 18 ~DirectOutputSurface() override;
19 19
20 // cc::OutputSurface implementation 20 // cc::OutputSurface implementation
21 virtual void SwapBuffers(cc::CompositorFrame* frame) override; 21 void SwapBuffers(cc::CompositorFrame* frame) override;
22 22
23 private: 23 private:
24 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_; 24 base::WeakPtrFactory<DirectOutputSurface> weak_ptr_factory_;
25 }; 25 };
26 26
27 } // namespace mojo 27 } // namespace mojo
28 28
29 #endif // MOJO_CC_DIRECT_OUTPUT_SURFACE_H_ 29 #endif // MOJO_CC_DIRECT_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « mojo/cc/context_provider_mojo.h ('k') | mojo/cc/output_surface_mojo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698