Home | History | Annotate | Download | only in compositor

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) {
470 void Layer::SwitchCCLayerForTest() {
476 void Layer::SetExternalTexture(Texture* texture) {
487 // Switch to a different type of layer.
504 void Layer::SetTextureMailbox(const cc::TextureMailbox& mailbox,
523 cc::TextureMailbox Layer::GetTextureMailbox(float* scale_factor) {
530 void Layer::SetDelegatedFrame(scoped_ptr<cc::DelegatedFrameData> frame,
554 void Layer
560 void Layer::SetColor(SkColor color) {
564 bool Layer::SchedulePaint(const gfx::Rect& invalid_rect) {
577 void Layer::ScheduleDraw() {
583 void Layer::SendDamagedRects() {
602 void Layer::SuppressPaint() {
610 void Layer::OnDeviceScaleFactorChanged(float device_scale_factor) {
629 void Layer::RequestCopyOfOutput(scoped_ptr<cc::CopyOutputRequest> request) {
633 void Layer::PaintContents(SkCanvas* sk_canvas,
636 TRACE_EVENT0("ui", "Layer::PaintContents");
653 unsigned Layer::PrepareTexture() {
658 WebKit::WebGraphicsContext3D* Layer::Context3d() {
665 bool Layer::PrepareTextureMailbox(cc::TextureMailbox* mailbox,
670 void Layer::SetForceRenderSurface(bool force) {
678 void Layer::OnAnimationStarted(const cc::AnimationEvent& event) {
683 void Layer::StackRelativeTo(Layer* child, Layer* other, bool above) {
706 bool Layer::ConvertPointForAncestor(const Layer* ancestor,
716 bool Layer::ConvertPointFromAncestor(const Layer* ancestor,
726 void Layer::SetBoundsImmediately(const gfx::Rect& bounds) {
753 void Layer::SetTransformImmediately(const gfx::Transform& transform) {
757 void Layer::SetOpacityImmediately(float opacity) {
762 void Layer::SetVisibilityImmediately(bool visible) {
770 void Layer::SetBrightnessImmediately(float brightness) {
775 void Layer::SetGrayscaleImmediately(float grayscale) {
780 void Layer::SetColorImmediately(SkColor color) {
786 void Layer::SetBoundsFromAnimation(const gfx::Rect& bounds) {
790 void Layer::SetTransformFromAnimation(const gfx::Transform& transform) {
794 void Layer::SetOpacityFromAnimation(float opacity) {
798 void Layer::SetVisibilityFromAnimation(bool visibility) {
802 void Layer::SetBrightnessFromAnimation(float brightness) {
806 void Layer::SetGrayscaleFromAnimation(float grayscale) {
810 void Layer::SetColorFromAnimation(SkColor color) {
814 void Layer::ScheduleDrawForAnimation() {
818 const gfx::Rect& Layer::GetBoundsForAnimation() const {
822 gfx::Transform Layer::GetTransformForAnimation() const {
826 float Layer::GetOpacityForAnimation() const {
830 bool Layer::GetVisibilityForAnimation() const {
834 float Layer::GetBrightnessForAnimation() const {
838 float Layer::GetGrayscaleForAnimation() const {
842 SkColor Layer::GetColorForAnimation() const {
850 float Layer::GetDeviceScaleFactor() const {
854 void Layer::AddThreadedAnimation(scoped_ptr<cc::Animation> animation) {
856 // Until this layer has a compositor (and hence cc_layer_ has a
880 void Layer::RemoveThreadedAnimation(int animation_id) {
895 void Layer::SendPendingThreadedAnimations() {
908 void Layer::CreateWebLayer() {
923 void Layer::RecomputeCCTransformFromTransform(const gfx::Transform& transform) {
928 gfx::Transform Layer::transform() const {
936 void Layer::RecomputeDrawsContentAndUVRect() {
967 void Layer::RecomputePosition() {