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

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

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/render_pass_draw_quad.cc ('k') | cc/quads/shared_quad_state.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 #ifndef CC_QUADS_SHARED_QUAD_STATE_H_ 5 #ifndef CC_QUADS_SHARED_QUAD_STATE_H_
6 #define CC_QUADS_SHARED_QUAD_STATE_H_ 6 #define CC_QUADS_SHARED_QUAD_STATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/base/cc_export.h" 9 #include "cc/base/cc_export.h"
10 #include "ui/gfx/rect.h" 10 #include "ui/gfx/rect.h"
11 #include "ui/gfx/transform.h" 11 #include "ui/gfx/transform.h"
12 12
13 namespace base {
14 class Value;
15 }
16
13 namespace cc { 17 namespace cc {
14 18
15 class CC_EXPORT SharedQuadState { 19 class CC_EXPORT SharedQuadState {
16 public: 20 public:
17 static scoped_ptr<SharedQuadState> Create(); 21 static scoped_ptr<SharedQuadState> Create();
18 ~SharedQuadState(); 22 ~SharedQuadState();
19 23
20 scoped_ptr<SharedQuadState> Copy() const; 24 scoped_ptr<SharedQuadState> Copy() const;
21 25
22 void SetAll(const gfx::Transform& content_to_target_transform, 26 void SetAll(const gfx::Transform& content_to_target_transform,
23 gfx::Size content_bounds, 27 gfx::Size content_bounds,
24 gfx::Rect visible_content_rect, 28 gfx::Rect visible_content_rect,
25 gfx::Rect clip_rect, 29 gfx::Rect clip_rect,
26 bool is_clipped, 30 bool is_clipped,
27 float opacity); 31 float opacity);
32 scoped_ptr<base::Value> AsValue() const;
28 33
29 // Transforms from quad's original content space to its target content space. 34 // Transforms from quad's original content space to its target content space.
30 gfx::Transform content_to_target_transform; 35 gfx::Transform content_to_target_transform;
36 // This size lives in the content space for the quad's originating layer.
37 gfx::Size content_bounds;
31 // This rect lives in the content space for the quad's originating layer. 38 // This rect lives in the content space for the quad's originating layer.
32 gfx::Size content_bounds;
33 gfx::Rect visible_content_rect; 39 gfx::Rect visible_content_rect;
40 // This rect lives in the target content space.
34 gfx::Rect clip_rect; 41 gfx::Rect clip_rect;
35 bool is_clipped; 42 bool is_clipped;
36 float opacity; 43 float opacity;
37 44
38 private: 45 private:
39 SharedQuadState(); 46 SharedQuadState();
40 }; 47 };
41 48
42 } // namespace cc 49 } // namespace cc
43 50
44 #endif // CC_QUADS_SHARED_QUAD_STATE_H_ 51 #endif // CC_QUADS_SHARED_QUAD_STATE_H_
OLDNEW
« no previous file with comments | « cc/quads/render_pass_draw_quad.cc ('k') | cc/quads/shared_quad_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698