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

Unified Diff: cc/render_pass_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
Index: cc/render_pass_draw_quad.cc
diff --git a/cc/render_pass_draw_quad.cc b/cc/render_pass_draw_quad.cc
index fec3ce04331f44d8b2b07c4ec80f1ecf94770586..8978edb1fa8b6910d829e9451cf063d2b1e5710b 100644
--- a/cc/render_pass_draw_quad.cc
+++ b/cc/render_pass_draw_quad.cc
@@ -86,6 +86,11 @@ void RenderPassDrawQuad::AppendResources(
resources->push_back(mask_resource_id);
}
+void RenderPassDrawQuad::RemapResources(
+ const ResourceRemapCallback& remap_callback) {
+ mask_resource_id = remap_callback.Run(mask_resource_id);
+}
+
const RenderPassDrawQuad* RenderPassDrawQuad::MaterialCast(
const DrawQuad* quad) {
DCHECK(quad->material == DrawQuad::RENDER_PASS);
« cc/draw_quad.h ('K') | « cc/render_pass_draw_quad.h ('k') | cc/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698