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

Side by Side Diff: cc/test/test_context_support.h

Issue 1539203002: Switch to standard integer types in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes Created 5 years 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.cc ('k') | cc/test/test_context_support.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 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 <stdint.h>
9
8 #include <vector> 10 #include <vector>
9 11
12 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 13 #include "base/memory/weak_ptr.h"
11 #include "gpu/command_buffer/client/context_support.h" 14 #include "gpu/command_buffer/client/context_support.h"
12 15
13 namespace gfx { 16 namespace gfx {
14 class Rect; 17 class Rect;
15 class RectF; 18 class RectF;
16 } 19 }
17 20
18 namespace cc { 21 namespace cc {
19 22
20 class TestContextSupport : public gpu::ContextSupport { 23 class TestContextSupport : public gpu::ContextSupport {
21 public: 24 public:
22 TestContextSupport(); 25 TestContextSupport();
23 ~TestContextSupport() override; 26 ~TestContextSupport() override;
24 27
25 // gpu::ContextSupport implementation. 28 // gpu::ContextSupport implementation.
26 void SignalSyncPoint(uint32 sync_point, 29 void SignalSyncPoint(uint32_t sync_point,
27 const base::Closure& callback) override; 30 const base::Closure& callback) override;
28 void SignalSyncToken(const gpu::SyncToken& sync_token, 31 void SignalSyncToken(const gpu::SyncToken& sync_token,
29 const base::Closure& callback) override; 32 const base::Closure& callback) override;
30 void SignalQuery(uint32 query, const base::Closure& callback) override; 33 void SignalQuery(uint32_t query, const base::Closure& callback) override;
31 void SetAggressivelyFreeResources(bool aggressively_free_resources) override; 34 void SetAggressivelyFreeResources(bool aggressively_free_resources) override;
32 void Swap() override; 35 void Swap() override;
33 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override; 36 void PartialSwapBuffers(const gfx::Rect& sub_buffer) override;
34 void CommitOverlayPlanes() override; 37 void CommitOverlayPlanes() override;
35 uint32 InsertFutureSyncPointCHROMIUM() override; 38 uint32_t InsertFutureSyncPointCHROMIUM() override;
36 void RetireSyncPointCHROMIUM(uint32 sync_point) override; 39 void RetireSyncPointCHROMIUM(uint32_t sync_point) override;
37 void ScheduleOverlayPlane(int plane_z_order, 40 void ScheduleOverlayPlane(int plane_z_order,
38 gfx::OverlayTransform plane_transform, 41 gfx::OverlayTransform plane_transform,
39 unsigned overlay_texture_id, 42 unsigned overlay_texture_id,
40 const gfx::Rect& display_bounds, 43 const gfx::Rect& display_bounds,
41 const gfx::RectF& uv_rect) override; 44 const gfx::RectF& uv_rect) override;
42 uint64_t ShareGroupTracingGUID() const override; 45 uint64_t ShareGroupTracingGUID() const override;
43 46
44 void CallAllSyncPointCallbacks(); 47 void CallAllSyncPointCallbacks();
45 48
46 typedef base::Callback<void(int plane_z_order, 49 typedef base::Callback<void(int plane_z_order,
(...skipping 17 matching lines...) Expand all
64 bool out_of_order_callbacks_; 67 bool out_of_order_callbacks_;
65 68
66 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_; 69 base::WeakPtrFactory<TestContextSupport> weak_ptr_factory_;
67 70
68 DISALLOW_COPY_AND_ASSIGN(TestContextSupport); 71 DISALLOW_COPY_AND_ASSIGN(TestContextSupport);
69 }; 72 };
70 73
71 } // namespace cc 74 } // namespace cc
72 75
73 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_ 76 #endif // CC_TEST_TEST_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « cc/test/test_context_provider.cc ('k') | cc/test/test_context_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698