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

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

Issue 362863002: Add future sync point methods to ContextSupport. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | Annotate | Revision Log
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 "base/callback.h" 8 #include "base/callback.h"
9 #include "ui/gfx/overlay_transform.h" 9 #include "ui/gfx/overlay_transform.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Schedule a texture to be presented as an overlay synchronously with the 34 // Schedule a texture to be presented as an overlay synchronously with the
35 // primary surface during the next buffer swap. 35 // primary surface during the next buffer swap.
36 // This method is not stateful and needs to be re-scheduled every frame. 36 // This method is not stateful and needs to be re-scheduled every frame.
37 virtual void ScheduleOverlayPlane(int plane_z_order, 37 virtual void ScheduleOverlayPlane(int plane_z_order,
38 gfx::OverlayTransform plane_transform, 38 gfx::OverlayTransform plane_transform,
39 unsigned overlay_texture_id, 39 unsigned overlay_texture_id,
40 const gfx::Rect& display_bounds, 40 const gfx::Rect& display_bounds,
41 const gfx::RectF& uv_rect) = 0; 41 const gfx::RectF& uv_rect) = 0;
42 42
43 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0;
44 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0;
45
43 protected: 46 protected:
44 ContextSupport() {} 47 ContextSupport() {}
45 virtual ~ContextSupport() {} 48 virtual ~ContextSupport() {}
46 }; 49 };
47 50
48 } 51 }
49 52
50 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 53 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « gpu/GLES2/extensions/CHROMIUM/CHROMIUM_future_sync_point.txt ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698