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

Unified Diff: gpu/command_buffer/client/context_support.h

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Introduced ScopedExportLock Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/common/cc_messages.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/context_support.h
diff --git a/gpu/command_buffer/client/context_support.h b/gpu/command_buffer/client/context_support.h
index b5e771368c06de4f13bdb728f5bbbec2b3e79fe8..176fb24c4090aaa948b691acb7bf32f4e86bf6d9 100644
--- a/gpu/command_buffer/client/context_support.h
+++ b/gpu/command_buffer/client/context_support.h
@@ -6,6 +6,7 @@
#define GPU_COMMAND_BUFFER_CLIENT_CONTEXT_SUPPORT_H_
#include "base/callback.h"
+#include "gpu/command_buffer/common/mailbox.h"
#include "ui/gfx/rect.h"
namespace gpu {
@@ -33,6 +34,15 @@ class ContextSupport {
virtual void SetSwapBuffersCompleteCallback(
const base::Closure& callback) = 0;
+ // Schedule a texture to be presented as an overlay synchronously with the
+ // primary surface during the next buffer swap.
+ // This method is not stateful and needs to be re-scheduled every frame.
+ virtual void ScheduleOverlayPlane(int plane_z_order,
+ unsigned plane_transform,
alexst (slow to review) 2014/03/26 20:48:50 Is //src/gpu/command_buffer/common/constants.h a r
+ const gpu::Mailbox& overlay_texture,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& uv_rect) = 0;
+
protected:
ContextSupport() {}
virtual ~ContextSupport() {}
« no previous file with comments | « content/common/cc_messages.cc ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698