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

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

Issue 547723002: Reland of: cc: Add occlusion checker as a fixed view of occlusion tracker. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 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
OLDNEW
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 #ifndef CC_LAYERS_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_LAYER_IMPL_H_
6 #define CC_LAYERS_LAYER_IMPL_H_ 6 #define CC_LAYERS_LAYER_IMPL_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "cc/animation/animation_delegate.h" 14 #include "cc/animation/animation_delegate.h"
15 #include "cc/animation/layer_animation_controller.h" 15 #include "cc/animation/layer_animation_controller.h"
16 #include "cc/animation/layer_animation_value_observer.h" 16 #include "cc/animation/layer_animation_value_observer.h"
17 #include "cc/animation/layer_animation_value_provider.h" 17 #include "cc/animation/layer_animation_value_provider.h"
18 #include "cc/base/cc_export.h" 18 #include "cc/base/cc_export.h"
19 #include "cc/base/region.h" 19 #include "cc/base/region.h"
20 #include "cc/base/scoped_ptr_vector.h" 20 #include "cc/base/scoped_ptr_vector.h"
21 #include "cc/input/input_handler.h" 21 #include "cc/input/input_handler.h"
22 #include "cc/layers/draw_properties.h" 22 #include "cc/layers/draw_properties.h"
23 #include "cc/layers/layer_lists.h" 23 #include "cc/layers/layer_lists.h"
24 #include "cc/layers/layer_position_constraint.h" 24 #include "cc/layers/layer_position_constraint.h"
25 #include "cc/layers/render_surface_impl.h" 25 #include "cc/layers/render_surface_impl.h"
26 #include "cc/output/filter_operations.h" 26 #include "cc/output/filter_operations.h"
27 #include "cc/quads/shared_quad_state.h" 27 #include "cc/quads/shared_quad_state.h"
28 #include "cc/resources/resource_provider.h" 28 #include "cc/resources/resource_provider.h"
29 #include "cc/trees/occlusion.h"
29 #include "skia/ext/refptr.h" 30 #include "skia/ext/refptr.h"
30 #include "third_party/skia/include/core/SkColor.h" 31 #include "third_party/skia/include/core/SkColor.h"
31 #include "third_party/skia/include/core/SkImageFilter.h" 32 #include "third_party/skia/include/core/SkImageFilter.h"
32 #include "third_party/skia/include/core/SkPicture.h" 33 #include "third_party/skia/include/core/SkPicture.h"
33 #include "ui/gfx/point3_f.h" 34 #include "ui/gfx/point3_f.h"
34 #include "ui/gfx/rect.h" 35 #include "ui/gfx/rect.h"
35 #include "ui/gfx/rect_f.h" 36 #include "ui/gfx/rect_f.h"
36 #include "ui/gfx/transform.h" 37 #include "ui/gfx/transform.h"
37 38
38 namespace base { 39 namespace base {
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 AppendQuadsData* append_quads_data) {} 198 AppendQuadsData* append_quads_data) {}
198 virtual void DidDraw(ResourceProvider* resource_provider); 199 virtual void DidDraw(ResourceProvider* resource_provider);
199 200
200 virtual ResourceProvider::ResourceId ContentsResourceId() const; 201 virtual ResourceProvider::ResourceId ContentsResourceId() const;
201 202
202 virtual bool HasDelegatedContent() const; 203 virtual bool HasDelegatedContent() const;
203 virtual bool HasContributingDelegatedRenderPasses() const; 204 virtual bool HasContributingDelegatedRenderPasses() const;
204 virtual RenderPassId FirstContributingRenderPassId() const; 205 virtual RenderPassId FirstContributingRenderPassId() const;
205 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const; 206 virtual RenderPassId NextContributingRenderPassId(RenderPassId id) const;
206 207
207 virtual void UpdateTiles( 208 virtual void UpdateTiles(const Occlusion& occlusion_in_layer_space) {}
208 const OcclusionTracker<LayerImpl>* occlusion_tracker) {}
209 virtual void NotifyTileStateChanged(const Tile* tile) {} 209 virtual void NotifyTileStateChanged(const Tile* tile) {}
210 210
211 virtual ScrollbarLayerImplBase* ToScrollbarLayer(); 211 virtual ScrollbarLayerImplBase* ToScrollbarLayer();
212 212
213 // Returns true if this layer has content to draw. 213 // Returns true if this layer has content to draw.
214 void SetDrawsContent(bool draws_content); 214 void SetDrawsContent(bool draws_content);
215 bool DrawsContent() const { return draws_content_; } 215 bool DrawsContent() const { return draws_content_; }
216 216
217 int NumDescendantsThatDrawContent() const; 217 int NumDescendantsThatDrawContent() const;
218 void SetHideLayerAndSubtree(bool hide); 218 void SetHideLayerAndSubtree(bool hide);
(...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 DrawProperties<LayerImpl> draw_properties_; 704 DrawProperties<LayerImpl> draw_properties_;
705 705
706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_; 706 scoped_refptr<base::debug::ConvertableToTraceFormat> debug_info_;
707 707
708 DISALLOW_COPY_AND_ASSIGN(LayerImpl); 708 DISALLOW_COPY_AND_ASSIGN(LayerImpl);
709 }; 709 };
710 710
711 } // namespace cc 711 } // namespace cc
712 712
713 #endif // CC_LAYERS_LAYER_IMPL_H_ 713 #endif // CC_LAYERS_LAYER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698