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

Unified Diff: cc/yuv_video_draw_quad.cc

Issue 12340124: cc: Receive and remap resources to the parent. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« cc/draw_quad.h ('K') | « cc/yuv_video_draw_quad.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/yuv_video_draw_quad.cc
diff --git a/cc/yuv_video_draw_quad.cc b/cc/yuv_video_draw_quad.cc
index 891cf94ee905dd315f087e7d76f18b02070be2bb..992152f29db7acb7141a60d5c308abba3fdea95f 100644
--- a/cc/yuv_video_draw_quad.cc
+++ b/cc/yuv_video_draw_quad.cc
@@ -56,6 +56,13 @@ void YUVVideoDrawQuad::AppendResources(
resources->push_back(v_plane.resourceId);
}
+void YUVVideoDrawQuad::RemapResources(
+ const ResourceRemapCallback& remap_callback) {
+ y_plane.resourceId = remap_callback.Run(y_plane.resourceId);
+ u_plane.resourceId = remap_callback.Run(u_plane.resourceId);
+ v_plane.resourceId = remap_callback.Run(v_plane.resourceId);
+}
+
const YUVVideoDrawQuad* YUVVideoDrawQuad::MaterialCast(
const DrawQuad* quad) {
DCHECK(quad->material == DrawQuad::YUV_VIDEO_CONTENT);
« cc/draw_quad.h ('K') | « cc/yuv_video_draw_quad.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698