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

Side by Side Diff: gpu/command_buffer/client/context_support.h

Issue 1615253006: Removed last references to old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed references in TestContextSupport Created 4 years, 11 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
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 GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 5 #ifndef GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 6 #define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "ui/gfx/overlay_transform.h" 11 #include "ui/gfx/overlay_transform.h"
12 12
13 namespace gfx { 13 namespace gfx {
14 class Rect; 14 class Rect;
15 class RectF; 15 class RectF;
16 } 16 }
17 17
18 namespace gpu { 18 namespace gpu {
19 19
20 struct SyncToken; 20 struct SyncToken;
21 21
22 class ContextSupport { 22 class ContextSupport {
23 public: 23 public:
24 // Runs |callback| when a sync point is reached.
25 virtual void SignalSyncPoint(uint32_t sync_point,
26 const base::Closure& callback) = 0;
27
28 // Runs |callback| when a sync token is signalled. 24 // Runs |callback| when a sync token is signalled.
29 virtual void SignalSyncToken(const SyncToken& sync_token, 25 virtual void SignalSyncToken(const SyncToken& sync_token,
30 const base::Closure& callback) = 0; 26 const base::Closure& callback) = 0;
31 27
32 // Runs |callback| when a query created via glCreateQueryEXT() has cleared 28 // Runs |callback| when a query created via glCreateQueryEXT() has cleared
33 // passed the glEndQueryEXT() point. 29 // passed the glEndQueryEXT() point.
34 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0; 30 virtual void SignalQuery(uint32_t query, const base::Closure& callback) = 0;
35 31
36 // Indicates whether the context should aggressively free allocated resources. 32 // Indicates whether the context should aggressively free allocated resources.
37 // If set to true, the context will purge all temporary resources when 33 // If set to true, the context will purge all temporary resources when
38 // flushed. 34 // flushed.
39 virtual void SetAggressivelyFreeResources( 35 virtual void SetAggressivelyFreeResources(
40 bool aggressively_free_resources) = 0; 36 bool aggressively_free_resources) = 0;
41 37
42 virtual void Swap() = 0; 38 virtual void Swap() = 0;
43 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; 39 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0;
44 virtual void CommitOverlayPlanes() = 0; 40 virtual void CommitOverlayPlanes() = 0;
45 41
46 // Schedule a texture to be presented as an overlay synchronously with the 42 // Schedule a texture to be presented as an overlay synchronously with the
47 // primary surface during the next buffer swap or CommitOverlayPlanes. 43 // primary surface during the next buffer swap or CommitOverlayPlanes.
48 // This method is not stateful and needs to be re-scheduled every frame. 44 // This method is not stateful and needs to be re-scheduled every frame.
49 virtual void ScheduleOverlayPlane(int plane_z_order, 45 virtual void ScheduleOverlayPlane(int plane_z_order,
50 gfx::OverlayTransform plane_transform, 46 gfx::OverlayTransform plane_transform,
51 unsigned overlay_texture_id, 47 unsigned overlay_texture_id,
52 const gfx::Rect& display_bounds, 48 const gfx::Rect& display_bounds,
53 const gfx::RectF& uv_rect) = 0; 49 const gfx::RectF& uv_rect) = 0;
54 50
55 virtual uint32_t InsertFutureSyncPointCHROMIUM() = 0;
56 virtual void RetireSyncPointCHROMIUM(uint32_t sync_point) = 0;
57
58 // Returns an ID that can be used to globally identify the share group that 51 // Returns an ID that can be used to globally identify the share group that
59 // this context's resources belong to. 52 // this context's resources belong to.
60 virtual uint64_t ShareGroupTracingGUID() const = 0; 53 virtual uint64_t ShareGroupTracingGUID() const = 0;
61 54
62 protected: 55 protected:
63 ContextSupport() {} 56 ContextSupport() {}
64 virtual ~ContextSupport() {} 57 virtual ~ContextSupport() {}
65 }; 58 };
66 59
67 } 60 }
68 61
69 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 62 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698