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

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

Issue 1398003003: Prototype: NativeLayer renderer with GL fallback Base URL: https://chromium.googlesource.com/chromium/src.git@root
Patch Set: Created 5 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
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 10
(...skipping 28 matching lines...) Expand all
39 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0; 39 virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) = 0;
40 40
41 // Schedule a texture to be presented as an overlay synchronously with the 41 // Schedule a texture to be presented as an overlay synchronously with the
42 // primary surface during the next buffer swap. 42 // primary surface during the next buffer swap.
43 // This method is not stateful and needs to be re-scheduled every frame. 43 // This method is not stateful and needs to be re-scheduled every frame.
44 virtual void ScheduleOverlayPlane(int plane_z_order, 44 virtual void ScheduleOverlayPlane(int plane_z_order,
45 gfx::OverlayTransform plane_transform, 45 gfx::OverlayTransform plane_transform,
46 unsigned overlay_texture_id, 46 unsigned overlay_texture_id,
47 const gfx::Rect& display_bounds, 47 const gfx::Rect& display_bounds,
48 const gfx::RectF& uv_rect) = 0; 48 const gfx::RectF& uv_rect) = 0;
49 // Schedule a solid color overlay plane to be shown at swap time.
50 virtual void ScheduleSolidColorOverlayPlane(int z_order,
51 const gfx::Rect& bounds_rect,
52 float red,
53 float green,
54 float blue,
55 float alpha) = 0;
49 56
50 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0; 57 virtual uint32 InsertFutureSyncPointCHROMIUM() = 0;
51 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0; 58 virtual void RetireSyncPointCHROMIUM(uint32 sync_point) = 0;
52 59
53 // Returns an ID that can be used to globally identify the share group that 60 // Returns an ID that can be used to globally identify the share group that
54 // this context's resources belong to. 61 // this context's resources belong to.
55 virtual uint64_t ShareGroupTracingGUID() const = 0; 62 virtual uint64_t ShareGroupTracingGUID() const = 0;
56 63
57 protected: 64 protected:
58 ContextSupport() {} 65 ContextSupport() {}
59 virtual ~ContextSupport() {} 66 virtual ~ContextSupport() {}
60 }; 67 };
61 68
62 } 69 }
63 70
64 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_ 71 #endif // GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
OLDNEW
« no previous file with comments | « content/common/gpu/image_transport_surface_overlay_mac.mm ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698