Home
last modified time | relevance | path

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

123

/external/chromium_org/content/renderer/compositor_bindings/
Dweb_layer_impl.cc48 WebLayerImpl::WebLayerImpl() : layer_(Layer::Create()) { in WebLayerImpl()
50 layer_->SetLayerClient(this); in WebLayerImpl()
53 WebLayerImpl::WebLayerImpl(scoped_refptr<Layer> layer) : layer_(layer) { in WebLayerImpl()
55 layer_->SetLayerClient(this); in WebLayerImpl()
59 layer_->ClearRenderSurface(); in ~WebLayerImpl()
60 layer_->set_layer_animation_delegate(NULL); in ~WebLayerImpl()
75 return layer_->id(); in id()
79 layer_->SetNeedsDisplayRect(rect); in invalidateRect()
83 layer_->SetNeedsDisplay(); in invalidate()
87 layer_->AddChild(static_cast<WebLayerImpl*>(child)->layer()); in addChild()
[all …]
Dweb_content_layer_impl.cc24 layer_ = make_scoped_ptr(new WebLayerImpl(PictureLayer::Create(this))); in WebContentLayerImpl()
26 layer_ = make_scoped_ptr(new WebLayerImpl(ContentLayer::Create(this))); in WebContentLayerImpl()
27 layer_->layer()->SetIsDrawable(true); in WebContentLayerImpl()
28 can_use_lcd_text_ = layer_->layer()->can_use_lcd_text(); in WebContentLayerImpl()
33 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); in ~WebContentLayerImpl()
35 static_cast<ContentLayer*>(layer_->layer())->ClearClient(); in ~WebContentLayerImpl()
39 return layer_.get(); in layer()
43 layer_->layer()->SetDoubleSided(double_sided); in setDoubleSided()
47 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable); in setDrawCheckerboardForMissingTiles()
73 if (can_use_lcd_text_ == layer_->layer()->can_use_lcd_text()) in DidChangeLayerCanUseLCDText()
[all …]
Dweb_image_layer_impl.cc16 layer_.reset(new WebLayerImplFixedBounds(cc::PictureImageLayer::Create())); in WebImageLayerImpl()
18 layer_.reset(new WebLayerImpl(cc::ImageLayer::Create())); in WebImageLayerImpl()
25 return layer_.get(); in layer()
30 static_cast<cc::PictureImageLayer*>(layer_->layer())->SetBitmap(bitmap); in setBitmap()
31 static_cast<WebLayerImplFixedBounds*>(layer_.get())->SetFixedBounds( in setBitmap()
34 static_cast<cc::ImageLayer*>(layer_->layer())->SetBitmap(bitmap); in setBitmap()
Dweb_external_texture_layer_impl.cc31 layer_.reset(new WebLayerImpl(layer)); in WebExternalTextureLayerImpl()
35 static_cast<TextureLayer*>(layer_->layer())->ClearClient(); in ~WebExternalTextureLayerImpl()
39 return layer_.get(); in layer()
43 TextureLayer* layer = static_cast<TextureLayer*>(layer_->layer()); in clearTexture()
48 static_cast<TextureLayer*>(layer_->layer())->SetContentsOpaque(opaque); in setOpaque()
53 static_cast<TextureLayer*>(layer_->layer())->SetPremultipliedAlpha( in setPremultipliedAlpha()
58 static_cast<TextureLayer*>(layer_->layer())->SetBlendBackgroundColor(blend); in setBlendBackgroundColor()
62 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()
24 return layer_.get(); in layer()
39 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setBitmap()
45 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setAperture()
51 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setBorder()
57 static_cast<cc::NinePatchLayer*>(layer_->layer()); in setFillCenter()
Dweb_solid_color_layer_impl.cc15 : layer_(new WebLayerImpl(SolidColorLayer::Create())) { in WebSolidColorLayerImpl()
16 layer_->layer()->SetIsDrawable(true); in WebSolidColorLayerImpl()
23 return layer_.get(); in layer()
27 layer_->setBackgroundColor(color); in setBackgroundColor()
Dweb_scrollbar_layer_impl.cc33 : layer_(new WebLayerImpl(PaintedScrollbarLayer::Create( in WebScrollbarLayerImpl()
46 : layer_(new WebLayerImpl( in WebScrollbarLayerImpl()
58 return layer_.get(); in layer()
64 layer_->layer()->ToScrollbarLayer()->SetScrollLayer(scroll_layer->id()); in setScrollLayer()
70 layer_->layer()->ToScrollbarLayer()->SetClipLayer(clip_layer->id()); in setClipLayer()
Dweb_layer_impl_fixed_bounds.cc35 layer_->SetTransformOrigin(transform_origin); in setTransformOrigin()
83 layer_->SetBounds(original_bounds_); in UpdateLayerBoundsAndTransform()
84 layer_->SetTransform(original_transform_); in UpdateLayerBoundsAndTransform()
88 layer_->SetBounds(fixed_bounds_); in UpdateLayerBoundsAndTransform()
97 layer_->SetTransform(transform_with_bounds_scale); in UpdateLayerBoundsAndTransform()
/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/ash/wm/
Dsystem_background_controller.cc17 layer_(new ui::Layer(ui::LAYER_SOLID_COLOR)) { in SystemBackgroundController()
19 layer_->SetColor(color); in SystemBackgroundController()
22 layer_->SetBounds(gfx::Rect(root_layer->bounds().size())); in SystemBackgroundController()
23 root_layer->Add(layer_.get()); in SystemBackgroundController()
24 root_layer->StackAtBottom(layer_.get()); in SystemBackgroundController()
32 layer_->SetColor(color); in SetColor()
40 layer_->SetBounds(gfx::Rect(root_window_->layer()->bounds().size())); in OnWindowBoundsChanged()
Dboot_splash_screen_chromeos.cc60 layer_(new ui::Layer(ui::LAYER_TEXTURED)) { in BootSplashScreen()
61 layer_->set_delegate(layer_delegate_.get()); in BootSplashScreen()
64 layer_->SetBounds(gfx::Rect(host->window()->bounds().size())); in BootSplashScreen()
65 root_layer->Add(layer_.get()); in BootSplashScreen()
66 root_layer->StackAtTop(layer_.get()); in BootSplashScreen()
73 ui::ScopedLayerAnimationSettings settings(layer_->GetAnimator()); in StartHideAnimation()
76 layer_->SetOpacity(0.0f); in StartHideAnimation()
/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()
Doverscroll_navigation_overlay.cc75 : layer_(layer.Pass()) { in OverlayDismissAnimator()
76 CHECK(layer_.get()); in OverlayDismissAnimator()
82 DCHECK(layer_.get()); in Animate()
83 ui::LayerAnimator* animator = layer_->GetAnimator(); in Animate()
88 layer_->SetOpacity(0); in Animate()
108 scoped_ptr<ui::Layer> layer_; member in content::OverlayDismissAnimator
Dshadow_layer_delegate.h31 ui::Layer* layer() { return layer_.get(); } in layer()
39 scoped_ptr<ui::Layer> layer_; variable
/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/cc/layers/
Dtexture_layer_unittest.cc687 layer_->SetTextureMailbox( in SetMailbox()
699 layer_ = TextureLayer::CreateForMailbox(NULL); in BeginTest()
700 layer_->SetIsDrawable(true); in BeginTest()
701 layer_->SetBounds(bounds); in BeginTest()
703 root_->AddChild(layer_); in BeginTest()
730 layer_->SetBounds(gfx::Size()); in DidCommit()
737 layer_->SetTextureMailbox(TextureMailbox(), in DidCommit()
761 layer_->RemoveFromParent(); in DidCommit()
777 layer_->SetTextureMailbox(TextureMailbox(), in DidCommit()
795 scoped_refptr<TextureLayer> layer_; member in cc::__anondcde8d430111::TextureLayerImplWithMailboxThreadedCallback
[all …]
Dpicture_layer_impl.cc1456 : layer_(NULL) {} in LayerRasterTileIterator()
1461 : layer_(layer), current_stage_(0) { in LayerRasterTileIterator()
1462 DCHECK(layer_); in LayerRasterTileIterator()
1465 if (!layer_->tilings_ || !layer_->tilings_->num_tilings()) { in LayerRasterTileIterator()
1472 if (!layer_->HasValidTilePriorities()) { in LayerRasterTileIterator()
1478 layer_->layer_tree_impl()->IsActiveTree() ? ACTIVE_TREE : PENDING_TREE; in LayerRasterTileIterator()
1481 for (size_t i = 0; i < layer_->tilings_->num_tilings(); ++i) { in LayerRasterTileIterator()
1482 PictureLayerTiling* tiling = layer_->tilings_->tiling_at(i); in LayerRasterTileIterator()
1523 return layer_ && static_cast<size_t>(current_stage_) < arraysize(stages_); in operator bool()
1567 layer_(NULL) {} in LayerEvictionTileIterator()
[all …]
/external/chromium_org/third_party/webrtc/modules/video_coding/codecs/test/
Dvideoprocessor_integrationtest.cc131 int layer_; member in webrtc::VideoProcessorIntegrationTest
249 sum_frame_size_mismatch_[layer_] += fabs(encoded_size_kbits - in UpdateRateControlMetrics()
250 per_frame_bandwidth_[layer_]) / in UpdateRateControlMetrics()
251 per_frame_bandwidth_[layer_]; in UpdateRateControlMetrics()
259 sum_encoded_frame_size_[layer_] += encoded_size_kbits; in UpdateRateControlMetrics()
262 encoding_bitrate_[layer_] = sum_encoded_frame_size_[layer_] * in UpdateRateControlMetrics()
263 frame_rate_layer_[layer_] / in UpdateRateControlMetrics()
264 num_frames_per_update_[layer_]; in UpdateRateControlMetrics()
337 layer_ = 0; in LayerIndexForFrame()
342 layer_ = 0; in LayerIndexForFrame()
[all …]
/external/chromium_org/content/renderer/pepper/
Dpepper_compositor_host.cc138 layer_ = cc::Layer::Create(); in PepperCompositorHost()
142 layer_->SetMasksToBounds(true); in PepperCompositorHost()
143 layer_->SetIsDrawable(true); in PepperCompositorHost()
222 if (clip_parent == layer_) { in UpdateLayer()
227 layer_->ReplaceChild(layer, clip_parent); in UpdateLayer()
234 } else if (layer->parent() != layer_) { in UpdateLayer()
236 layer_->ReplaceChild(layer->parent(), layer); in UpdateLayer()
344 layer_->RemoveAllChildren(); in OnHostMsgCommitLayers()
360 layer_->AddChild(cc_layer); in OnHostMsgCommitLayers()
374 if (layer_->layer_tree_host()) in OnHostMsgCommitLayers()
[all …]
/external/chromium_org/content/browser/renderer_host/
Drender_widget_host_view_android.cc302 gfx::Size bounds = layer_->bounds(); in GetScaledContentBitmap()
320 if (!layer_) in HasValidFrame()
384 if (layer_) in Show()
385 layer_->SetHideLayerAndSubtree(false); in Show()
396 if (layer_ && locks_on_frame_count_ == 0) in Hide()
397 layer_->SetHideLayerAndSubtree(true); in Hide()
433 if (!is_showing_ && layer_) in UnlockCompositingSurface()
434 layer_->SetHideLayerAndSubtree(true); in UnlockCompositingSurface()
785 layer_ = NULL; in DestroyDelegatedContent()
827 layer_ = cc::DelegatedRendererLayer::Create(frame_provider_); in SwapDelegatedFrame()
[all …]
/external/chromium_org/ui/compositor/
Dlayer_owner.h38 ui::Layer* layer() { return layer_; } in layer()
39 const ui::Layer* layer() const { return layer_; } in layer()
57 Layer* layer_; variable
Dlayer_owner.cc11 LayerOwner::LayerOwner() : layer_(NULL), layer_owner_delegate_(NULL) { in LayerOwner()
20 layer_ = layer; in SetLayer()
21 layer_->owner_ = this; in SetLayer()
76 layer_ = NULL; in DestroyLayer()
/external/chromium_org/cc/test/
Dtiled_layer_test_common.cc11 : LayerUpdater::Resource(texture.Pass()), layer_(layer) { in Resource()
29 layer_->Update(); in Update()
44 layer_->InvalidateContentRect(rect_to_invalidate_); in PrepareToUpdate()
46 layer_ = NULL; in PrepareToUpdate()
54 layer_ = layer; in SetRectToInvalidate()
/external/chromium_org/content/renderer/
Drender_widget_fullscreen_pepper.cc285 layer_(NULL), in RenderWidgetFullscreenPepper()
326 layer_ = layer; in SetLayer()
327 if (!layer_) { in SetLayer()
334 layer_->setBounds(blink::WebSize(size())); in SetLayer()
335 layer_->setDrawsContent(true); in SetLayer()
337 compositor_->setRootLayer(*layer_); in SetLayer()
379 if (layer_) in OnResize()
380 layer_->setBounds(blink::WebSize(params.new_size)); in OnResize()
/external/chromium_org/ui/wm/core/
Dimage_grid.cc68 : layer_(new ui::Layer(ui::LAYER_NOT_DRAWN)), in ImageGrid()
130 gfx::Rect updated_bounds = layer_->bounds(); in SetSize()
132 layer_->SetBounds(updated_bounds); in SetSize()
149 gfx::Size(center_width, center_height), layer_->device_scale_factor())); in SetSize()
254 layer_->SetBounds( in SetContentBounds()
257 layer_->bounds().width(), in SetContentBounds()
258 layer_->bounds().height())); in SetContentBounds()
295 layer_->Remove(layer_ptr->get()); in SetImage()
335 layer_->Add(layer_ptr->get()); in SetImage()

123