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

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

Issue 20667002: cc: Add frame data to LTHI tracing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 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/picture_draw_quad.h ('k') | cc/quads/render_pass.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/picture_draw_quad.h" 5 #include "cc/quads/picture_draw_quad.h"
6 6
7 #include "base/values.h"
8 #include "cc/base/math_util.h"
9
7 namespace cc { 10 namespace cc {
8 11
9 PictureDrawQuad::PictureDrawQuad() { 12 PictureDrawQuad::PictureDrawQuad() {
10 } 13 }
11 14
12 PictureDrawQuad::~PictureDrawQuad() { 15 PictureDrawQuad::~PictureDrawQuad() {
13 } 16 }
14 17
15 scoped_ptr<PictureDrawQuad> PictureDrawQuad::Create() { 18 scoped_ptr<PictureDrawQuad> PictureDrawQuad::Create() {
16 return make_scoped_ptr(new PictureDrawQuad); 19 return make_scoped_ptr(new PictureDrawQuad);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const ResourceIteratorCallback& callback) { 64 const ResourceIteratorCallback& callback) {
62 // TODO(danakj): Convert to TextureDrawQuad? 65 // TODO(danakj): Convert to TextureDrawQuad?
63 NOTIMPLEMENTED(); 66 NOTIMPLEMENTED();
64 } 67 }
65 68
66 const PictureDrawQuad* PictureDrawQuad::MaterialCast(const DrawQuad* quad) { 69 const PictureDrawQuad* PictureDrawQuad::MaterialCast(const DrawQuad* quad) {
67 DCHECK(quad->material == DrawQuad::PICTURE_CONTENT); 70 DCHECK(quad->material == DrawQuad::PICTURE_CONTENT);
68 return static_cast<const PictureDrawQuad*>(quad); 71 return static_cast<const PictureDrawQuad*>(quad);
69 } 72 }
70 73
74 void PictureDrawQuad::ExtendValue(base::DictionaryValue* value) const {
75 ContentDrawQuadBase::ExtendValue(value);
76 value->Set("content_rect", MathUtil::AsValue(content_rect).release());
77 value->SetDouble("contents_scale", contents_scale);
78 value->SetBoolean("can_draw_direct_to_backbuffer",
79 can_draw_direct_to_backbuffer);
80 // TODO(piman): picture_pile?
81 }
82
71 } // namespace cc 83 } // namespace cc
OLDNEW
« no previous file with comments | « cc/quads/picture_draw_quad.h ('k') | cc/quads/render_pass.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698