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

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

Issue 633773004: cc: Pass Occlusion instead of OcclusionTracker to LayerImpls (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 6 years, 2 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/layers/surface_layer_impl.cc ('k') | cc/layers/texture_layer_impl.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_LAYERS_TEXTURE_LAYER_IMPL_H_ 5 #ifndef CC_LAYERS_TEXTURE_LAYER_IMPL_H_
6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 6 #define CC_LAYERS_TEXTURE_LAYER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 11 matching lines...) Expand all
22 } 22 }
23 virtual ~TextureLayerImpl(); 23 virtual ~TextureLayerImpl();
24 24
25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl) 25 virtual scoped_ptr<LayerImpl> CreateLayerImpl(LayerTreeImpl* layer_tree_impl)
26 override; 26 override;
27 virtual void PushPropertiesTo(LayerImpl* layer) override; 27 virtual void PushPropertiesTo(LayerImpl* layer) override;
28 28
29 virtual bool WillDraw(DrawMode draw_mode, 29 virtual bool WillDraw(DrawMode draw_mode,
30 ResourceProvider* resource_provider) override; 30 ResourceProvider* resource_provider) override;
31 virtual void AppendQuads(RenderPass* render_pass, 31 virtual void AppendQuads(RenderPass* render_pass,
32 const OcclusionTracker<LayerImpl>& occlusion_tracker, 32 const Occlusion& occlusion_in_content_space,
33 AppendQuadsData* append_quads_data) override; 33 AppendQuadsData* append_quads_data) override;
34 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override; 34 virtual SimpleEnclosedRegion VisibleContentOpaqueRegion() const override;
35 virtual void ReleaseResources() override; 35 virtual void ReleaseResources() override;
36 36
37 // These setter methods don't cause any implicit damage, so the texture client 37 // These setter methods don't cause any implicit damage, so the texture client
38 // must explicitly invalidate if they intend to cause a visible change in the 38 // must explicitly invalidate if they intend to cause a visible change in the
39 // layer's output. 39 // layer's output.
40 void SetTextureId(unsigned id); 40 void SetTextureId(unsigned id);
41 void SetPremultipliedAlpha(bool premultiplied_alpha); 41 void SetPremultipliedAlpha(bool premultiplied_alpha);
42 void SetBlendBackgroundColor(bool blend); 42 void SetBlendBackgroundColor(bool blend);
(...skipping 30 matching lines...) Expand all
73 scoped_ptr<SingleReleaseCallbackImpl> release_callback_; 73 scoped_ptr<SingleReleaseCallbackImpl> release_callback_;
74 bool own_mailbox_; 74 bool own_mailbox_;
75 bool valid_texture_copy_; 75 bool valid_texture_copy_;
76 76
77 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl); 77 DISALLOW_COPY_AND_ASSIGN(TextureLayerImpl);
78 }; 78 };
79 79
80 } // namespace cc 80 } // namespace cc
81 81
82 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_ 82 #endif // CC_LAYERS_TEXTURE_LAYER_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/surface_layer_impl.cc ('k') | cc/layers/texture_layer_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698