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

Side by Side Diff: cc/test/test_context_support.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/test/test_context_provider.h ('k') | cc/test/test_gles2_interface.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_TEST_TEST_CONTEXT_SUPPORT_H_ 5 #ifndef CC_TEST_TEST_CONTEXT_SUPPORT_H_
6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_ 6 #define CC_TEST_TEST_CONTEXT_SUPPORT_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
11 #include "gpu/command_buffer/client/context_support.h" 11 #include "gpu/command_buffer/client/context_support.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class TestContextSupport : public gpu::ContextSupport { 15 class TestContextSupport : public gpu::ContextSupport {
16 public: 16 public:
17 TestContextSupport(); 17 TestContextSupport();
18 virtual ~TestContextSupport(); 18 virtual ~TestContextSupport();
19 19
20 // gpu::ContextSupport implementation. 20 // gpu::ContextSupport implementation.
21 virtual void SignalSyncPoint(uint32 sync_point, 21 virtual void SignalSyncPoint(uint32 sync_point,
22 const base::Closure& callback) OVERRIDE; 22 const base::Closure& callback) override;
23 virtual void SignalQuery(uint32 query, 23 virtual void SignalQuery(uint32 query,
24 const base::Closure& callback) OVERRIDE; 24 const base::Closure& callback) override;
25 virtual void SetSurfaceVisible(bool visible) OVERRIDE; 25 virtual void SetSurfaceVisible(bool visible) override;
26 virtual void Swap() OVERRIDE; 26 virtual void Swap() override;
27 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) OVERRIDE; 27 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
28 virtual uint32 InsertFutureSyncPointCHROMIUM() OVERRIDE; 28 virtual uint32 InsertFutureSyncPointCHROMIUM() override;
29 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) OVERRIDE; 29 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) override;
30 virtual void ScheduleOverlayPlane(int plane_z_order, 30 virtual void ScheduleOverlayPlane(int plane_z_order,
31 gfx::OverlayTransform plane_transform, 31 gfx::OverlayTransform plane_transform,
32 unsigned overlay_texture_id, 32 unsigned overlay_texture_id,
33 const gfx::Rect& display_bounds, 33 const gfx::Rect& display_bounds,
34 const gfx::RectF& uv_rect) OVERRIDE; 34 const gfx::RectF& uv_rect) override;
35 35
36 void CallAllSyncPointCallbacks(); 36 void CallAllSyncPointCallbacks();
37 37
38 typedef base::Callback<void(bool visible)> SurfaceVisibleCallback; 38 typedef base::Callback<void(bool visible)> SurfaceVisibleCallback;
39 void SetSurfaceVisibleCallback( 39 void SetSurfaceVisibleCallback(
40 const SurfaceVisibleCallback& set_visible_callback); 40 const SurfaceVisibleCallback& set_visible_callback);
41 41
42 typedef base::Callback<void(int plane_z_order, 42 typedef base::Callback<void(int plane_z_order,
43 gfx::OverlayTransform plane_transform, 43 gfx::OverlayTransform plane_transform,
44 unsigned overlay_texture_id, 44 unsigned overlay_texture_id,
(...skipping 23 matching lines...) Expand all
68 gfx::Rect last_partial_swap_rect_; 68 gfx::Rect last_partial_swap_rect_;
69 69
70 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; 70 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); 72 DISALLOW_COPY_AND_ASSIGN(TestContextSupport);
73 }; 73 };
74 74
75 } // namespace cc 75 } // namespace cc
76 76
77 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ 77 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.h ('k') | cc/test/test_gles2_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698