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

Unified Diff: cc/test/test_context_support.h

Issue 208213003: Plumb overlay processing into DirectRenderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ScopedGLLock 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
Index: cc/test/test_context_support.h
diff --git a/cc/test/test_context_support.h b/cc/test/test_context_support.h
index 7ae657c15d2189f01d0ab0d33b88c3ea5cd81697..9fd5d1d14f1675d7e14674786105a380a16aec39 100644
--- a/cc/test/test_context_support.h
+++ b/cc/test/test_context_support.h
@@ -29,6 +29,11 @@ class TestContextSupport : public gpu::ContextSupport {
virtual void PartialSwapBuffers(const gfx::Rect& sub_buffer) OVERRIDE;
virtual void SetSwapBuffersCompleteCallback(
const base::Closure& callback) OVERRIDE;
+ virtual void ScheduleOverlayPlane(int plane_z_order,
+ unsigned plane_transform,
+ unsigned overlay_texture_id,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& uv_rect) OVERRIDE;
void CallAllSyncPointCallbacks();
@@ -36,6 +41,15 @@ class TestContextSupport : public gpu::ContextSupport {
void SetSurfaceVisibleCallback(
const SurfaceVisibleCallback& set_visible_callback);
+ typedef base::Callback<void(int plane_z_order,
+ unsigned plane_transform,
+ unsigned overlay_texture_id,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& crop_rect)>
+ ScheduleOverlayPlaneCallback;
+ void SetScheduleOverlayPlaneCallback(
+ const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback);
+
enum SwapType {
NO_SWAP,
SWAP,
@@ -52,6 +66,7 @@ class TestContextSupport : public gpu::ContextSupport {
std::vector<base::Closure> sync_point_callbacks_;
SurfaceVisibleCallback set_visible_callback_;
+ ScheduleOverlayPlaneCallback schedule_overlay_plane_callback_;
base::Closure swap_buffers_complete_callback_;

Powered by Google App Engine
This is Rietveld 408576698