Home
last modified time | relevance | path

Searched refs:layer_ (Results 1 – 25 of 58) sorted by relevance

123

/external/chromium_org/webkit/renderer/compositor_bindings/
Dweb_layer_impl.cc41 WebLayerImpl::WebLayerImpl() : layer_(Layer::Create()) { in WebLayerImpl()
43 layer_->SetLayerClient(this); in WebLayerImpl()
46 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) : layer_(layer) { in WebLayerImpl()
48 layer_->SetLayerClient(this); in WebLayerImpl()
52 layer_->ClearRenderSurface(); in ~WebLayerImpl()
53 layer_->set_layer_animation_delegate(NULL); in ~WebLayerImpl()
57 int WebLayerImpl::id() const { return layer_->id(); } in id()
60 layer_->SetNeedsDisplayRect(rect); in invalidateRect()
63 void WebLayerImpl::invalidate() { layer_->SetNeedsDisplay(); } in invalidate()
66 layer_->AddChild(static_cast<WebLayerImpl*>(child)->layer()); in addChild()
[all …]
Dweb_content_layer_impl.cc31 layer_ = make_scoped_ptr(new WebLayerImpl(PictureLayer::Create(this))); in WebContentLayerImpl()
33 layer_ = make_scoped_ptr(new WebLayerImpl(ContentLayer::Create(this))); in WebContentLayerImpl()
34 layer_->layer()->SetIsDrawable(true); in WebContentLayerImpl()
35 can_use_lcd_text_ = layer_->layer()->can_use_lcd_text(); in WebContentLayerImpl()
40 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); in ~WebContentLayerImpl()
42 static_cast<ContentLayer*>(layer_->layer())->ClearClient(); in ~WebContentLayerImpl()
45 blink::WebLayer* WebContentLayerImpl::layer() { return layer_.get(); } in layer()
48 layer_->layer()->SetDoubleSided(double_sided); in setDoubleSided()
52 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable); in setDrawCheckerboardForMissingTiles()
72 if (can_use_lcd_text_ == layer_->layer()->can_use_lcd_text()) in DidChangeLayerCanUseLCDText()
[all …]
Dweb_image_layer_impl.cc22 layer_.reset(new WebLayerImplFixedBounds(cc::PictureImageLayer::Create())); in WebImageLayerImpl()
24 layer_.reset(new WebLayerImpl(cc::ImageLayer::Create())); in WebImageLayerImpl()
29 blink::WebLayer* WebImageLayerImpl::layer() { return layer_.get(); } in layer()
33 static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap); in setBitmap()
34 static_cast<WebLayerImplFixedBounds*>(layer_.get())->SetFixedBounds( in setBitmap()
37 static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap); in setBitmap()
Dweb_external_texture_layer_impl.cc30 layer_.reset(new WebLayerImpl(layer)); in WebExternalTextureLayerImpl()
34 static_cast<TextureLayer*>(layer_->layer())->ClearClient(); in ~WebExternalTextureLayerImpl()
37 blink::WebLayer* WebExternalTextureLayerImpl::layer() { return layer_.get(); } in layer()
40 TextureLayer *layer = static_cast<TextureLayer*>(layer_->layer()); in clearTexture()
47 static_cast<TextureLayer*>(layer_->layer())->SetContentsOpaque(opaque); in setOpaque()
52 static_cast<TextureLayer*>(layer_->layer())->SetPremultipliedAlpha( in setPremultipliedAlpha()
57 static_cast<TextureLayer*>(layer_->layer())->SetBlendBackgroundColor(blend); in setBlendBackgroundColor()
61 static_cast<TextureLayer*>(layer_->layer())->SetRateLimitContext(rate_limit); in setRateLimitContext()
Dweb_nine_patch_layer_impl.cc17 layer_.reset(new WebLayerImpl(cc::NinePatchLayer::Create())); in WebNinePatchLayerImpl()
22 blink::WebLayer* WebNinePatchLayerImpl::layer() { return layer_.get(); } in layer()
35 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setBitmap()
41 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setAperture()
47 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setBorder()
53 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setFillCenter()
Dweb_layer_impl_fixed_bounds.cc36 layer_->SetAnchorPoint(anchor_point); in setAnchorPoint()
101 layer_->SetBounds(original_bounds_); in UpdateLayerBoundsAndTransform()
102 layer_->SetTransform(original_transform_); in UpdateLayerBoundsAndTransform()
103 layer_->SetSublayerTransform(original_sublayer_transform_); in UpdateLayerBoundsAndTransform()
107 layer_->SetBounds(fixed_bounds_); in UpdateLayerBoundsAndTransform()
116 layer_->SetTransform(transform_with_bounds_scale); in UpdateLayerBoundsAndTransform()
125 layer_->SetSublayerTransform(sublayer_transform_with_inverse_bounds_scale); in UpdateLayerBoundsAndTransform()
Dweb_solid_color_layer_impl.cc15 : layer_(new WebLayerImpl(SolidColorLayer::Create())) { in WebSolidColorLayerImpl()
16 layer_->layer()->SetIsDrawable(true); in WebSolidColorLayerImpl()
21 blink::WebLayer* WebSolidColorLayerImpl::layer() { return layer_.get(); } in layer()
24 layer_->setBackgroundColor(color); in setBackgroundColor()
Dweb_scrollbar_layer_impl.cc32 : layer_(new WebLayerImpl(PaintedScrollbarLayer::Create( in WebScrollbarLayerImpl()
42 : layer_(new WebLayerImpl( in WebScrollbarLayerImpl()
51 blink::WebLayer* WebScrollbarLayerImpl::layer() { return layer_.get(); } in layer()
55 static_cast<PaintedScrollbarLayer*>(layer_->layer())->SetScrollLayerId(id); in setScrollLayer()
/external/chromium_org/ash/wm/
Ddrag_window_controller.cc25 layer_(NULL) { in DragWindowController()
54 if (layer_) { in Hide()
55 views::corewm::DeepDeleteLayers(layer_); in Hide()
56 layer_ = NULL; in Hide()
88 layer_->SetVisible(true); in CreateDragWidget()
89 window->layer()->Add(layer_); in CreateDragWidget()
90 window->layer()->StackAtTop(layer_); in CreateDragWidget()
113 DCHECK(!layer_); in RecreateWindowLayers()
114 layer_ = views::corewm::RecreateWindowLayers(window_, true); in RecreateWindowLayers()
115 layer_->set_delegate(window_->layer()->delegate()); in RecreateWindowLayers()
[all …]
Dsystem_background_controller.cc18 layer_(new ui::Layer(ui::LAYER_SOLID_COLOR)) { in SystemBackgroundController()
20 layer_->SetColor(color); in SystemBackgroundController()
23 layer_->SetBounds(gfx::Rect(root_layer->bounds().size())); in SystemBackgroundController()
24 root_layer->Add(layer_.get()); in SystemBackgroundController()
25 root_layer->StackAtBottom(layer_.get()); in SystemBackgroundController()
33 layer_->SetColor(color); in SetColor()
41 layer_->SetBounds(gfx::Rect(root_window_->layer()->bounds().size())); in OnWindowBoundsChanged()
Dboot_splash_screen_chromeos.cc56 layer_(new ui::Layer(ui::LAYER_TEXTURED)) { in BootSplashScreen()
57 layer_->set_delegate(layer_delegate_.get()); in BootSplashScreen()
60 layer_->SetBounds(gfx::Rect(root_layer->bounds().size())); in BootSplashScreen()
61 root_layer->Add(layer_.get()); in BootSplashScreen()
62 root_layer->StackAtTop(layer_.get()); in BootSplashScreen()
69 ui::ScopedLayerAnimationSettings settings(layer_->GetAnimator()); in StartHideAnimation()
72 layer_->SetOpacity(0.0f); in StartHideAnimation()
Dwindow_animations.cc262 layer_(layer) { in CrossFadeObserver()
264 layer_->GetCompositor()->AddObserver(this); in CrossFadeObserver()
269 layer_->GetCompositor()->RemoveObserver(this); in ~CrossFadeObserver()
270 views::corewm::DeepDeleteLayers(layer_); in ~CrossFadeObserver()
271 layer_ = NULL; in ~CrossFadeObserver()
284 layer_->GetAnimator()->StopAnimating(); in OnCompositingAborted()
297 layer_->GetAnimator()->StopAnimating(); in OnWindowDestroying()
300 layer_->GetAnimator()->StopAnimating(); in OnWindowRemovingFromRootWindow()
310 ui::Layer* layer_; // owned member in ash::CrossFadeObserver
/external/chromium_org/ui/aura/
Dwindow.cc236 if (layer_) in ~Window()
237 layer_->SuppressPaint(); in ~Window()
291 if (layer_) { in ~Window()
292 layer_->set_delegate(NULL); in ~Window()
293 layer_ = NULL; in ~Window()
303 layer_ = new ui::Layer(WindowLayerTypeToUILayerType(window_layer_type)); in InitWithWindowLayerType()
304 layer_owner_.reset(layer_); in InitWithWindowLayerType()
305 layer_->SetVisible(false); in InitWithWindowLayerType()
306 layer_->set_delegate(this); in InitWithWindowLayerType()
308 layer_->SetFillsBoundsOpaquely(!transparent_); in InitWithWindowLayerType()
[all …]
/external/chromium_org/chrome/browser/chromeos/ui/
Dfocus_ring_layer.cc40 if (!layer_ || root_window != root_window_) { in Update()
43 layer_.reset(new ui::Layer(ui::LAYER_TEXTURED)); in Update()
44 layer_->set_name("FocusRing"); in Update()
45 layer_->set_delegate(this); in Update()
46 layer_->SetFillsBoundsOpaquely(false); in Update()
47 root_layer->Add(layer_.get()); in Update()
52 layer_->parent()->StackAtTop(layer_.get()); in Update()
61 layer_->SetBounds(layer_bounds); in Update()
66 if (layer_ && !focus_ring_.IsEmpty()) in SetForView()
67 layer_->SchedulePaint(focus_ring_); in SetForView()
[all …]
/external/chromium_org/content/browser/web_contents/aura/
Dshadow_layer_delegate.cc25 : layer_(new ui::Layer(ui::LAYER_TEXTURED)) { in ShadowLayerDelegate()
26 layer_->set_delegate(this); in ShadowLayerDelegate()
27 layer_->SetBounds(gfx::Rect(-kShadowThick, 0, kShadowThick, in ShadowLayerDelegate()
29 layer_->SetFillsBoundsOpaquely(false); in ShadowLayerDelegate()
30 shadow_for->Add(layer_.get()); in ShadowLayerDelegate()
48 layer_->bounds().height()); in OnPaintLayer()
Dshadow_layer_delegate.h31 ui::Layer* layer() { return layer_.get(); } in layer()
39 scoped_ptr<ui::Layer> layer_; variable
/external/chromium_org/ash/wm/overview/
Dscoped_window_copy.cc106 ui::Layer* layer_; member in ash::CleanupWidgetAfterAnimationObserver
117 layer_(layer), in CleanupWidgetAfterAnimationObserver()
149 if (layer_) { in ~CleanupWidgetAfterAnimationObserver()
150 views::corewm::DeepDeleteLayers(layer_); in ~CleanupWidgetAfterAnimationObserver()
151 layer_ = NULL; in ~CleanupWidgetAfterAnimationObserver()
163 layer_ = views::corewm::RecreateWindowLayers(src_window, true); in ScopedWindowCopy()
164 widget_ = CreateCopyOfWindow(target_root, src_window, layer_); in ScopedWindowCopy()
165 cleanup_observer_ = new CleanupWidgetAfterAnimationObserver(widget_, layer_); in ScopedWindowCopy()
/external/chromium-trace/trace-viewer/src/cc/
Dselection.js76 this.layer_ = layer;
83 return this.layer_.layerId;
96 dataView.object = this.layer_.args;
101 return this.layer_.objectInstance.typeName;
105 var layer = lthi.activeTree.findLayerWithId(this.layer_.layerId) ||
106 lthi.pendingTree.findLayerWithId(this.layer_.layerId);
/external/chromium_org/ui/compositor/
Dlayer_owner.h28 ui::Layer* layer() { return layer_; } in layer()
29 const ui::Layer* layer() const { return layer_; } in layer()
38 Layer* layer_; variable
/external/chromium_org/cc/layers/
Dtexture_layer_unittest.cc770 layer_->SetTextureMailbox(mailbox, callback.Pass()); in SetMailbox()
781 layer_ = TextureLayer::CreateForMailbox(NULL); in BeginTest()
782 layer_->SetIsDrawable(true); in BeginTest()
783 layer_->SetAnchorPoint(gfx::PointF()); in BeginTest()
784 layer_->SetBounds(bounds); in BeginTest()
786 root_->AddChild(layer_); in BeginTest()
813 layer_->SetBounds(gfx::Size()); in DidCommit()
820 layer_->SetTextureMailbox(TextureMailbox(), in DidCommit()
844 layer_->RemoveFromParent(); in DidCommit()
860 layer_->SetTextureMailbox(TextureMailbox(), in DidCommit()
[all …]
/external/chromium_org/cc/trees/
Dquad_culler.cc27 layer_(layer), in QuadCuller()
91 layer_, false, draw_quad->visible_rect); in Append()
94 layer_->render_target(), in Append()
104 layer_, in Append()
/external/chromium_org/cc/test/
Dtiled_layer_test_common.cc11 : LayerUpdater::Resource(texture.Pass()), layer_(layer) { in Resource()
30 layer_->Update(); in Update()
45 layer_->InvalidateContentRect(rect_to_invalidate_); in PrepareToUpdate()
47 layer_ = NULL; in PrepareToUpdate()
55 layer_ = layer; in SetRectToInvalidate()
/external/chromium_org/ui/views/corewm/
Dimage_grid.cc34 : layer_(new ui::Layer(ui::LAYER_NOT_DRAWN)), in ImageGrid()
95 gfx::Rect updated_bounds = layer_->bounds(); in SetSize()
97 layer_->SetBounds(updated_bounds); in SetSize()
114 gfx::Size(center_width, center_height), layer_->device_scale_factor())); in SetSize()
219 layer_->SetBounds( in SetContentBounds()
222 layer_->bounds().width(), in SetContentBounds()
223 layer_->bounds().height())); in SetContentBounds()
268 layer_->Remove(layer_ptr->get()); in SetImage()
286 layer_->Add(layer_ptr->get()); in SetImage()
/external/chromium_org/content/renderer/
Drender_widget_fullscreen_pepper.cc364 layer_(NULL), in RenderWidgetFullscreenPepper()
405 layer_ = layer; in SetLayer()
406 bool compositing = !!layer_; in SetLayer()
413 layer_->setBounds(blink::WebSize(size())); in SetLayer()
414 layer_->setDrawsContent(true); in SetLayer()
416 compositor_->setRootLayer(*layer_); in SetLayer()
477 if (layer_) in OnResize()
478 layer_->setBounds(blink::WebSize(params.new_size)); in OnResize()
/external/chromium_org/ui/aura/bench/
Dbench_main.cc265 layer_(layer), in SoftwareScrollBench()
268 layer_->set_draw( in SoftwareScrollBench()
277 layer_->set_color( in Draw()
279 layer_->SchedulePaint(gfx::Rect(layer_->bounds().size())); in Draw()
283 ColoredLayer* layer_; member in __anon587f39e10111::SoftwareScrollBench

123