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

Side by Side Diff: ui/ozone/platform/dri/gbm_buffer_base.h

Issue 623293004: replace OVERRIDE and FINAL with override and final in ui/ (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 | « ui/ozone/platform/dri/gbm_buffer.h ('k') | ui/ozone/platform/dri/gbm_surface.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 UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_
6 #define UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_ 6 #define UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_
7 7
8 #include "ui/ozone/platform/dri/scanout_buffer.h" 8 #include "ui/ozone/platform/dri/scanout_buffer.h"
9 9
10 struct gbm_bo; 10 struct gbm_bo;
11 11
12 namespace ui { 12 namespace ui {
13 13
14 class DriWrapper; 14 class DriWrapper;
15 15
16 // Wrapper for a GBM buffer. The base class provides common functionality 16 // Wrapper for a GBM buffer. The base class provides common functionality
17 // required to prepare the buffer for scanout. It does not provide any ownership 17 // required to prepare the buffer for scanout. It does not provide any ownership
18 // of the buffer. Implementations of this base class should deal with buffer 18 // of the buffer. Implementations of this base class should deal with buffer
19 // ownership. 19 // ownership.
20 class GbmBufferBase : public ScanoutBuffer { 20 class GbmBufferBase : public ScanoutBuffer {
21 public: 21 public:
22 gbm_bo* bo() const { return bo_; } 22 gbm_bo* bo() const { return bo_; }
23 23
24 // ScanoutBuffer: 24 // ScanoutBuffer:
25 virtual uint32_t GetFramebufferId() const OVERRIDE; 25 virtual uint32_t GetFramebufferId() const override;
26 virtual uint32_t GetHandle() const OVERRIDE; 26 virtual uint32_t GetHandle() const override;
27 virtual gfx::Size GetSize() const OVERRIDE; 27 virtual gfx::Size GetSize() const override;
28 28
29 protected: 29 protected:
30 GbmBufferBase(DriWrapper* dri, gbm_bo* bo, bool scanout); 30 GbmBufferBase(DriWrapper* dri, gbm_bo* bo, bool scanout);
31 virtual ~GbmBufferBase(); 31 virtual ~GbmBufferBase();
32 32
33 private: 33 private:
34 DriWrapper* dri_; 34 DriWrapper* dri_;
35 gbm_bo* bo_; 35 gbm_bo* bo_;
36 uint32_t framebuffer_; 36 uint32_t framebuffer_;
37 37
38 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase); 38 DISALLOW_COPY_AND_ASSIGN(GbmBufferBase);
39 }; 39 };
40 40
41 } // namespace ui 41 } // namespace ui
42 42
43 #endif // UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_ 43 #endif // UI_OZONE_PLATFORM_DRI_GBM_BUFFER_BASE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/gbm_buffer.h ('k') | ui/ozone/platform/dri/gbm_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698