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

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

Issue 263653002: Move traced_value.* from cc/debug/ to base/debug/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added BASE_EXPORT Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/resources/image_copy_raster_worker_pool.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/shared_quad_state.h" 5 #include "cc/quads/shared_quad_state.h"
6 6
7 #include "base/debug/traced_value.h"
7 #include "base/values.h" 8 #include "base/values.h"
8 #include "cc/base/math_util.h" 9 #include "cc/base/math_util.h"
9 #include "cc/debug/traced_value.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 SharedQuadState::SharedQuadState() 13 SharedQuadState::SharedQuadState()
14 : is_clipped(false), opacity(0.f), blend_mode(SkXfermode::kSrcOver_Mode) {} 14 : is_clipped(false), opacity(0.f), blend_mode(SkXfermode::kSrcOver_Mode) {}
15 15
16 SharedQuadState::~SharedQuadState() { 16 SharedQuadState::~SharedQuadState() {
17 TRACE_EVENT_OBJECT_DELETED_WITH_ID( 17 TRACE_EVENT_OBJECT_DELETED_WITH_ID(
18 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"), 18 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"),
19 "cc::SharedQuadState", this); 19 "cc::SharedQuadState", this);
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 value->Set("transform", 52 value->Set("transform",
53 MathUtil::AsValue(content_to_target_transform).release()); 53 MathUtil::AsValue(content_to_target_transform).release());
54 value->Set("layer_content_bounds", 54 value->Set("layer_content_bounds",
55 MathUtil::AsValue(content_bounds).release()); 55 MathUtil::AsValue(content_bounds).release());
56 value->Set("layer_visible_content_rect", 56 value->Set("layer_visible_content_rect",
57 MathUtil::AsValue(visible_content_rect).release()); 57 MathUtil::AsValue(visible_content_rect).release());
58 value->SetBoolean("is_clipped", is_clipped); 58 value->SetBoolean("is_clipped", is_clipped);
59 value->Set("clip_rect", MathUtil::AsValue(clip_rect).release()); 59 value->Set("clip_rect", MathUtil::AsValue(clip_rect).release());
60 value->SetDouble("opacity", opacity); 60 value->SetDouble("opacity", opacity);
61 value->SetString("blend_mode", SkXfermode::ModeName(blend_mode)); 61 value->SetString("blend_mode", SkXfermode::ModeName(blend_mode));
62 TracedValue::MakeDictIntoImplicitSnapshotWithCategory( 62 base::debug::TracedValue::MakeDictIntoImplicitSnapshotWithCategory(
63 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"), 63 TRACE_DISABLED_BY_DEFAULT("cc.debug.quads"),
64 value.get(), "cc::SharedQuadState", this); 64 value.get(),
65 "cc::SharedQuadState",
66 this);
65 return value.PassAs<base::Value>(); 67 return value.PassAs<base::Value>();
66 } 68 }
67 69
68 } // namespace cc 70 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/resources/image_copy_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698