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

Side by Side Diff: cc/quads/render_pass_draw_quad.cc

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 unified diff | Download patch
« no previous file with comments | « cc/quads/render_pass_draw_quad.h ('k') | cc/quads/shared_quad_state.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/quads/render_pass_draw_quad.h" 5 #include "cc/quads/render_pass_draw_quad.h"
6 6
7 #include "base/trace_event/trace_event_argument.h" 7 #include "base/trace_event/trace_event_argument.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
10 #include "cc/debug/traced_value.h" 10 #include "cc/debug/traced_value.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 mask_uv_scale.y()); 88 mask_uv_scale.y());
89 return mask_uv_rect; 89 return mask_uv_rect;
90 } 90 }
91 91
92 const RenderPassDrawQuad* RenderPassDrawQuad::MaterialCast( 92 const RenderPassDrawQuad* RenderPassDrawQuad::MaterialCast(
93 const DrawQuad* quad) { 93 const DrawQuad* quad) {
94 DCHECK_EQ(quad->material, DrawQuad::RENDER_PASS); 94 DCHECK_EQ(quad->material, DrawQuad::RENDER_PASS);
95 return static_cast<const RenderPassDrawQuad*>(quad); 95 return static_cast<const RenderPassDrawQuad*>(quad);
96 } 96 }
97 97
98 void RenderPassDrawQuad::ExtendValue(base::debug::TracedValue* value) const { 98 void RenderPassDrawQuad::ExtendValue(
99 base::trace_event::TracedValue* value) const {
99 TracedValue::SetIDRef(render_pass_id.AsTracingId(), value, "render_pass_id"); 100 TracedValue::SetIDRef(render_pass_id.AsTracingId(), value, "render_pass_id");
100 value->SetInteger("mask_resource_id", mask_resource_id); 101 value->SetInteger("mask_resource_id", mask_resource_id);
101 MathUtil::AddToTracedValue("mask_texture_size", mask_texture_size, value); 102 MathUtil::AddToTracedValue("mask_texture_size", mask_texture_size, value);
102 MathUtil::AddToTracedValue("mask_uv_scale", mask_uv_scale, value); 103 MathUtil::AddToTracedValue("mask_uv_scale", mask_uv_scale, value);
103 104
104 value->BeginDictionary("filters"); 105 value->BeginDictionary("filters");
105 filters.AsValueInto(value); 106 filters.AsValueInto(value);
106 value->EndDictionary(); 107 value->EndDictionary();
107 MathUtil::AddToTracedValue("filters_scale", filters_scale, value); 108 MathUtil::AddToTracedValue("filters_scale", filters_scale, value);
108 109
109 value->BeginDictionary("background_filters"); 110 value->BeginDictionary("background_filters");
110 background_filters.AsValueInto(value); 111 background_filters.AsValueInto(value);
111 value->EndDictionary(); 112 value->EndDictionary();
112 } 113 }
113 114
114 } // namespace cc 115 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.h ('k') | cc/quads/shared_quad_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698