OLD | NEW |
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/layers/render_surface_impl.h" | 5 #include "cc/layers/render_surface_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "cc/trees/damage_tracker.h" | 21 #include "cc/trees/damage_tracker.h" |
22 #include "third_party/skia/include/core/SkImageFilter.h" | 22 #include "third_party/skia/include/core/SkImageFilter.h" |
23 #include "ui/gfx/rect_conversions.h" | 23 #include "ui/gfx/rect_conversions.h" |
24 #include "ui/gfx/transform.h" | 24 #include "ui/gfx/transform.h" |
25 | 25 |
26 namespace cc { | 26 namespace cc { |
27 | 27 |
28 RenderSurfaceImpl::RenderSurfaceImpl(LayerImpl* owning_layer) | 28 RenderSurfaceImpl::RenderSurfaceImpl(LayerImpl* owning_layer) |
29 : owning_layer_(owning_layer), | 29 : owning_layer_(owning_layer), |
30 surface_property_changed_(false), | 30 surface_property_changed_(false), |
31 draw_opacity_(1), | |
32 draw_opacity_is_animating_(false), | 31 draw_opacity_is_animating_(false), |
33 target_surface_transforms_are_animating_(false), | 32 target_surface_transforms_are_animating_(false), |
34 screen_space_transforms_are_animating_(false), | 33 screen_space_transforms_are_animating_(false), |
35 is_clipped_(false), | 34 is_clipped_(false), |
36 contributes_to_drawn_surface_(false), | 35 contributes_to_drawn_surface_(false), |
| 36 draw_opacity_(1), |
37 nearest_occlusion_immune_ancestor_(NULL), | 37 nearest_occlusion_immune_ancestor_(NULL), |
38 target_render_surface_layer_index_history_(0), | 38 target_render_surface_layer_index_history_(0), |
39 current_layer_index_history_(0) { | 39 current_layer_index_history_(0) { |
40 damage_tracker_ = DamageTracker::Create(); | 40 damage_tracker_ = DamageTracker::Create(); |
41 } | 41 } |
42 | 42 |
43 RenderSurfaceImpl::~RenderSurfaceImpl() {} | 43 RenderSurfaceImpl::~RenderSurfaceImpl() {} |
44 | 44 |
45 gfx::RectF RenderSurfaceImpl::DrawableContentRect() const { | 45 gfx::RectF RenderSurfaceImpl::DrawableContentRect() const { |
46 gfx::RectF drawable_content_rect = | 46 gfx::RectF drawable_content_rect = |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
227 for_replica, | 227 for_replica, |
228 mask_resource_id, | 228 mask_resource_id, |
229 contents_changed_since_last_frame, | 229 contents_changed_since_last_frame, |
230 mask_uv_rect, | 230 mask_uv_rect, |
231 owning_layer_->filters(), | 231 owning_layer_->filters(), |
232 owning_layer_->background_filters()); | 232 owning_layer_->background_filters()); |
233 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); | 233 quad_sink->Append(quad.PassAs<DrawQuad>(), append_quads_data); |
234 } | 234 } |
235 | 235 |
236 } // namespace cc | 236 } // namespace cc |
OLD | NEW |