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

Side by Side Diff: cc/layers/render_surface_draw_properties.h

Issue 1310283002: cc: Avoid duplicate work when computing draw properties using property trees (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move RenderSurfaceDrawProperties to its own file Created 5 years, 3 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/cc.gyp ('k') | cc/layers/render_surface_draw_properties.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CC_LAYERS_RENDER_SURFACE_DRAW_PROPERTIES_H_
6 #define CC_LAYERS_RENDER_SURFACE_DRAW_PROPERTIES_H_
7
8 #include "cc/base/cc_export.h"
9 #include "ui/gfx/geometry/rect.h"
10 #include "ui/gfx/transform.h"
11
12 namespace cc {
13
14 // Container for properties that render surfaces need to compute before they can
15 // be drawn.
16 struct CC_EXPORT RenderSurfaceDrawProperties {
17 RenderSurfaceDrawProperties();
18 ~RenderSurfaceDrawProperties();
19
20 float draw_opacity;
21
22 // Transforms from the surface's own space to the space of its target surface.
23 gfx::Transform draw_transform;
24
25 // Transforms from the surface's own space to the viewport.
26 gfx::Transform screen_space_transform;
27
28 // If the surface has a replica, these transform from the replica's space to
29 // the space of the target surface and the viewport.
30 gfx::Transform replica_draw_transform;
31 gfx::Transform replica_screen_space_transform;
32
33 // This is in the surface's own space.
34 gfx::Rect content_rect;
35
36 // This is in the space of the surface's target surface.
37 gfx::Rect clip_rect;
38
39 // True if the surface needs to be clipped by clip_rect.
40 bool is_clipped;
41 };
42
43 } // namespace cc
44
45 #endif // CC_LAYERS_RENDER_SURFACE_DRAW_PROPERTIES_H_
OLDNEW
« no previous file with comments | « cc/cc.gyp ('k') | cc/layers/render_surface_draw_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698