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

Unified Diff: cc/test/test_context_support.cc

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
Index: cc/test/test_context_support.cc
diff --git a/cc/test/test_context_support.cc b/cc/test/test_context_support.cc
index 3c2e31a819171b7f30215cf3043beec584c1b619..dfd2ddacd9c96662ee7c92156652e15bd247c2ae 100644
--- a/cc/test/test_context_support.cc
+++ b/cc/test/test_context_support.cc
@@ -56,6 +56,11 @@ void TestContextSupport::SetSurfaceVisibleCallback(
set_visible_callback_ = set_visible_callback;
}
+void TestContextSupport::SetScheduleOverlayPlaneCallback(
+ const ScheduleOverlayPlaneCallback& schedule_overlay_plane_callback) {
+ schedule_overlay_plane_callback_ = schedule_overlay_plane_callback;
+}
+
void TestContextSupport::Swap() {
last_swap_type_ = SWAP;
base::MessageLoop::current()->PostTask(
@@ -71,6 +76,21 @@ void TestContextSupport::PartialSwapBuffers(const gfx::Rect& sub_buffer) {
weak_ptr_factory_.GetWeakPtr()));
}
+void TestContextSupport::ScheduleOverlayPlane(
+ int plane_z_order,
+ unsigned plane_transform,
+ const gpu::Mailbox& overlay_texture,
+ const gfx::Rect& display_bounds,
+ const gfx::RectF& uv_rect) {
+ if (!schedule_overlay_plane_callback_.is_null()) {
+ schedule_overlay_plane_callback_.Run(plane_z_order,
+ plane_transform,
+ overlay_texture,
+ display_bounds,
+ uv_rect);
+ }
+}
+
void TestContextSupport::SetSwapBuffersCompleteCallback(
const base::Closure& callback) {
swap_buffers_complete_callback_ = callback;

Powered by Google App Engine
This is Rietveld 408576698