Lines Matching refs:Layer
5 #include "ui/compositor/layer.h"
36 const ui::Layer* GetRoot(const ui::Layer* layer) {
37 while (layer->parent())
38 layer = layer->parent();
39 return layer;
46 Layer::Layer()
70 Layer::Layer(LayerType type)
94 Layer::~Layer() {
95 // Destroying the animator may cause observers to use the layer (and
115 Compositor* Layer::GetCompositor() {
119 float Layer::opacity() const {
123 void Layer::SetCompositor(Compositor* compositor) {
124 // This function must only be called to set the compositor on the root layer,
136 void Layer::Add(Layer* child) {
148 void Layer::Remove(Layer* child) {
149 std::vector<Layer*>::iterator i =
157 void Layer::StackAtTop(Layer* child) {
163 void Layer::StackAbove(Layer* child, Layer* other) {
167 void Layer::StackAtBottom(Layer* child) {
173 void Layer::StackBelow(Layer* child, Layer* other) {
177 bool Layer::Contains(const Layer* other) const {
178 for (const Layer* parent = other; parent; parent = parent->parent()) {
185 void Layer::SetAnimator(LayerAnimator* animator) {
191 LayerAnimator* Layer::GetAnimator() {
197 void Layer::SetTransform(const gfx::Transform& transform) {
201 gfx::Transform Layer::GetTargetTransform() const {
209 void Layer::SetBounds(const gfx::Rect& bounds) {
213 gfx::Rect Layer::GetTargetBounds() const {
221 void Layer::SetMasksToBounds(bool masks_to_bounds) {
225 bool Layer::GetMasksToBounds() const {
229 void Layer::SetOpacity(float opacity) {
233 float Layer::GetCombinedOpacity() const {
235 Layer* current = this->parent_;
243 void Layer::SetBackgroundBlur(int blur_radius) {
249 void Layer::SetLayerSaturation(float saturation) {
254 void Layer::SetLayerBrightness(float brightness) {
258 float Layer::GetTargetBrightness() const {
266 void Layer::SetLayerGrayscale(float grayscale) {
270 float Layer::GetTargetGrayscale() const {
278 void Layer::SetLayerInverted(bool inverted) {
283 void Layer::SetMaskLayer(Layer* layer_mask) {
284 // The provided mask should not have a layer mask itself.
293 // arises if the mask layer gets deleted before this object.
307 void Layer::SetBackgroundZoom(float zoom, int inset) {
314 void Layer::SetLayerFilters() {
337 void Layer::SetLayerBackgroundFilters() {
350 float Layer::GetTargetOpacity() const {
357 void Layer::SetVisible(bool visible) {
361 bool Layer::GetTargetVisibility() const {
368 bool Layer::IsDrawn() const {
369 const Layer* layer = this;
370 while (layer && layer->visible_)
371 layer = layer->parent_;
372 return layer == NULL;
375 bool Layer::ShouldDraw() const {
380 void Layer::ConvertPointToLayer(const Layer* source,
381 const Layer* target,
386 const Layer* root_layer = GetRoot(source);
395 bool Layer::GetTargetTransformRelativeTo(const Layer* ancestor,
397 const Layer* p = this;
412 gfx::Transform Layer::ConvertTransformToCCTransform(
422 void Layer::SetFillsBoundsOpaquely(bool fills_bounds_opaquely) {
431 void Layer::SwitchToLayer(scoped_refptr<cc::Layer> new_layer) {
472 void Layer::SwitchCCLayerForTest() {
478 void Layer::SetExternalTexture(Texture* texture) {
498 void Layer::SetTextureMailbox(
519 cc::TextureMailbox Layer::GetTextureMailbox(float* scale_factor) {
525 void Layer::SetShowDelegatedContent(cc::DelegatedFrameProvider* frame_provider,
539 void Layer::SetShowPaintedContent() {
554 void Layer::SetColor(SkColor color) { GetAnimator()->SetColor(color); }
556 bool Layer::SchedulePaint(const gfx::Rect& invalid_rect) {
569 void Layer::ScheduleDraw() {
575 void Layer::SendDamagedRects() {
594 void Layer::SuppressPaint() {
602 void Layer::OnDeviceScaleFactorChanged(float device_scale_factor) {
621 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
625 void Layer::PaintContents(SkCanvas* sk_canvas,
628 TRACE_EVENT0("ui", "Layer::PaintContents");
645 unsigned Layer::PrepareTexture() {
650 bool Layer::PrepareTextureMailbox(
657 void Layer::SetForceRenderSurface(bool force) {
665 std::string Layer::DebugName() {
669 scoped_refptr<base::debug::ConvertableToTraceFormat> Layer::TakeDebugInfo() {
674 void Layer::OnAnimationStarted(const cc::AnimationEvent& event) {
679 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) {
702 bool Layer::ConvertPointForAncestor(const Layer* ancestor,
712 bool Layer::ConvertPointFromAncestor(const Layer* ancestor,
722 void Layer::SetBoundsImmediately(const gfx::Rect& bounds) {
749 void Layer::SetTransformImmediately(const gfx::Transform& transform) {
753 void Layer::SetOpacityImmediately(float opacity) {
758 void Layer::SetVisibilityImmediately(bool visible) {
766 void Layer::SetBrightnessImmediately(float brightness) {
771 void Layer::SetGrayscaleImmediately(float grayscale) {
776 void Layer::SetColorImmediately(SkColor color) {
782 void Layer::SetBoundsFromAnimation(const gfx::Rect& bounds) {
786 void Layer::SetTransformFromAnimation(const gfx::Transform& transform) {
790 void Layer::SetOpacityFromAnimation(float opacity) {
794 void Layer::SetVisibilityFromAnimation(bool visibility) {
798 void Layer::SetBrightnessFromAnimation(float brightness) {
802 void Layer::SetGrayscaleFromAnimation(float grayscale) {
806 void Layer::SetColorFromAnimation(SkColor color) {
810 void Layer::ScheduleDrawForAnimation() {
814 const gfx::Rect& Layer::GetBoundsForAnimation() const {
818 gfx::Transform Layer::GetTransformForAnimation() const {
822 float Layer::GetOpacityForAnimation() const {
826 bool Layer::GetVisibilityForAnimation() const {
830 float Layer::GetBrightnessForAnimation() const {
834 float Layer::GetGrayscaleForAnimation() const {
838 SkColor Layer::GetColorForAnimation() const {
846 float Layer::GetDeviceScaleFactor() const {
850 void Layer::AddThreadedAnimation(scoped_ptr<cc::Animation> animation) {
852 // Until this layer has a compositor (and hence cc_layer_ has a
876 void Layer::RemoveThreadedAnimation(int animation_id) {
891 void Layer::SendPendingThreadedAnimations() {
904 void Layer::CreateWebLayer() {
920 void Layer::RecomputeCCTransformFromTransform(const gfx::Transform& transform) {
925 gfx::Transform Layer::transform() const {
933 void Layer::RecomputeDrawsContentAndUVRect() {
964 void Layer::RecomputePosition() {