/external/chromium_org/ui/compositor/ |
layer_owner_unittest.cc | 8 #include "ui/compositor/layer.h" 16 Layer* layer = new Layer; local 17 layer->SetVisible(true); 18 layer->SetOpacity(1.0f); 20 owner.SetLayer(layer); 22 ScopedLayerAnimationSettings settings(layer->GetAnimator()); 23 layer->SetVisible(false); 24 layer->SetOpacity(0.0f) [all...] |
/external/chromium_org/third_party/WebKit/Source/platform/graphics/ |
Canvas2DLayerManager.cpp | 84 Canvas2DLayerBridge* layer = m_layerList.head(); local 85 while (layer) { 86 Canvas2DLayerBridge* currentLayer = layer; 88 // may result in the layer being removed from the list. 89 layer = layer->next(); 94 void Canvas2DLayerManager::layerDidDraw(Canvas2DLayerBridge* layer) 96 if (isInList(layer)) { 97 if (layer != m_layerList.head()) { 98 m_layerList.remove(layer); 130 Canvas2DLayerBridge* layer = m_layerList.tail(); \/\/ LRU local [all...] |
Canvas2DLayerManagerTest.cpp | 77 // Because the fake layer has no canvas to query, just 156 // verify multi-layer allocation tracking 172 FakeCanvas2DLayerBridgePtr layer(adoptRef(new FakeCanvas2DLayerBridge(webContext.get(), canvas.release(), surface.release()))); 173 layer->fakeFreeableBytes(10); 174 layer->storageAllocatedForRecordingChanged(8); // under the max 175 EXPECT_EQ(0, layer->m_freeMemoryIfPossibleCount); 176 layer->storageAllocatedForRecordingChanged(12); // over the max 177 EXPECT_EQ(1, layer->m_freeMemoryIfPossibleCount); 178 EXPECT_EQ((size_t)3, layer->m_freeableBytes); 179 EXPECT_EQ(0, layer->m_flushCount); // eviction succeeded without triggering a flus [all...] |
/external/chromium_org/third_party/WebKit/Source/web/painting/ |
ContinuousPainter.cpp | 40 void ContinuousPainter::setNeedsDisplayRecursive(GraphicsLayer* layer, PageOverlayList* pageOverlays) 42 if (!layer) 45 if (pageOverlays && pageOverlays->findGraphicsLayer(layer) != WTF::kNotFound) 49 layer->setNeedsDisplay(); 51 setNeedsDisplayRecursive(layer->maskLayer(), pageOverlays); 52 setNeedsDisplayRecursive(layer->contentsClippingMaskLayer(), pageOverlays); 53 setNeedsDisplayRecursive(layer->replicaLayer(), pageOverlays); 55 const Vector<GraphicsLayer*>& children = layer->children();
|
/external/chromium_org/third_party/WebKit/Source/core/rendering/compositing/ |
CompositingLayerAssigner.cpp | 84 bool CompositingLayerAssigner::needsOwnBacking(const RenderLayer* layer) const 86 if (!m_compositor->canBeComposited(layer)) 90 bool needsOwnBackingForDisabledSquashing = !m_layerSquashingEnabled && requiresSquashing(layer->compositingReasons()); 92 return requiresCompositing(layer->compositingReasons()) || needsOwnBackingForDisabledSquashing || (m_compositor->staleInCompositingMode() && layer->isRootLayer()); 95 CompositingStateTransitionType CompositingLayerAssigner::computeCompositedLayerUpdate(RenderLayer* layer) 98 if (needsOwnBacking(layer)) { 99 if (!layer->hasCompositedLayerMapping()) { 103 if (layer->hasCompositedLayerMapping()) 107 if (!layer->subtreeIsInvisible() && requiresSquashing(layer->compositingReasons())) [all...] |
GraphicsLayerUpdater.cpp | 49 UpdateContext(const UpdateContext& other, const RenderLayer& layer) 51 , m_compositingAncestor(other.compositingContainer(layer)) 53 CompositingState compositingState = layer.compositingState(); 55 m_compositingAncestor = &layer; 56 if (layer.stackingNode()->isStackingContext()) 57 m_compositingStackingContext = &layer; 61 const RenderLayer* compositingContainer(const RenderLayer& layer) const 63 return layer.stackingNode()->isNormalFlowOnly() ? m_compositingAncestor : m_compositingStackingContext; 85 void GraphicsLayerUpdater::update(RenderLayer& layer, Vector<RenderLayer*>& layersNeedingPaintInvalidation) 88 updateRecursive(layer, DoNotForceUpdate, UpdateContext(), layersNeedingPaintInvalidation) [all...] |
GraphicsLayerTreeBuilder.cpp | 48 static bool shouldAppendLayer(const RenderLayer& layer) 52 Node* node = layer.renderer()->node(); 58 void GraphicsLayerTreeBuilder::rebuild(RenderLayer& layer, AncestorInfo info) 60 // Make the layer compositing if necessary, and set up clipping and content layers. 64 layer.stackingNode()->updateLayerListsIfNeeded(); 66 const bool hasCompositedLayerMapping = layer.hasCompositedLayerMapping(); 67 CompositedLayerMapping* currentCompositedLayerMapping = layer.compositedLayerMapping(); 69 // If this layer has a compositedLayerMapping, then that is where we place subsequent children GraphicsLayers. 70 // Otherwise children continue to append to the child list of the enclosing layer. 75 infoForChildren.enclosingCompositedLayer = &layer; [all...] |
CompositingInputsUpdater.cpp | 32 static const RenderLayer* findParentLayerOnClippingContainerChain(const RenderLayer* layer) 34 RenderObject* current = layer->renderer(); 42 return static_cast<const RenderLayerModelObject*>(current)->layer(); 49 return static_cast<const RenderLayerModelObject*>(current)->layer(); 57 return static_cast<const RenderLayerModelObject*>(current)->layer(); 58 // Having clip or overflow clip forces the RenderObject to become a layer. 69 return static_cast<const RenderLayerModelObject*>(current)->layer(); 75 static bool hasClippedStackingAncestor(const RenderLayer* layer, const RenderLayer* clippingLayer) 77 if (layer == clippingLayer) 80 for (const RenderLayer* current = layer->compositingContainer(); current && current != clippingLayer; current = current->compositingContai (…) [all...] |
/external/chromium_org/cc/layers/ |
layer_utils.cc | 15 bool HasAnimationThatInflatesBounds(const LayerImpl& layer) { 16 return layer.layer_animation_controller()->HasAnimationThatInflatesBounds(); 19 bool HasFilterAnimationThatInflatesBounds(const LayerImpl& layer) { 20 return layer.layer_animation_controller() 24 bool HasTransformAnimationThatInflatesBounds(const LayerImpl& layer) { 25 return layer.layer_animation_controller() 29 inline bool HasAncestorTransformAnimation(const LayerImpl& layer) { 30 return layer.screen_space_transform_is_animating(); 33 inline bool HasAncestorFilterAnimation(const LayerImpl& layer) { 34 for (const LayerImpl* current = &layer; current [all...] |
layer_impl_unittest.cc | 171 // Changing these properties only affects the layer itself. 190 // Changing this property does not cause the layer to be marked as changed 191 // but does cause the layer to need to push properties. 195 // Changing these properties should cause the layer to need to push properties 258 LayerImpl* layer = layer_ptr.get(); local 260 layer->SetScrollClipLayer(root->id()); 280 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)); 281 VERIFY_NO_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)); 282 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(FilterOperations())); 283 VERIFY_NEEDS_UPDATE_DRAW_PROPERTIES(layer->SetFilters(arbitrary_filters)) 363 scoped_ptr<LayerImpl> layer = LayerImpl::Create(host_impl.active_tree(), 1); local 394 scoped_ptr<LayerImpl> layer = LayerImpl::Create(host_impl.active_tree(), 1); local 436 LayerImpl* layer() { function in class:cc::__anon7308::LayerImplScrollTest [all...] |
picture_layer_unittest.cc | 35 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); local 36 layer->SetBounds(gfx::Size(10, 10)); 40 host->SetRootLayer(layer); 41 layer->SetIsDrawable(true); 42 layer->SavePaintProperties(); 44 OcclusionTracker<Layer> occlusion(gfx::Rect(0, 0, 1000, 1000)); 46 layer->Update(queue.get(), &occlusion); 48 layer->SetBounds(gfx::Size(0, 0)); 49 layer->SavePaintProperties(); 51 // a layer with empty bounds 74 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); local 89 scoped_refptr<PictureLayer> layer = PictureLayer::Create(&client); local [all...] |
heads_up_display_layer_impl_unittest.cc | 17 void CheckDrawLayer(HeadsUpDisplayLayerImpl* layer, 23 bool will_draw = layer->WillDraw(draw_mode, resource_provider); 25 layer->AppendQuads(render_pass.get(), occlusion_tracker, &data); 26 layer->UpdateHudTexture(draw_mode, resource_provider); 28 layer->DidDraw(resource_provider); 41 scoped_ptr<HeadsUpDisplayLayerImpl> layer = local 43 layer->SetContentBounds(gfx::Size(100, 100)); 47 layer.get(), host_impl.resource_provider(), DRAW_MODE_HARDWARE); 50 layer->ReleaseResources(); 53 CheckDrawLayer(layer.get() [all...] |
/external/chromium_org/ppapi/c/ |
ppb_compositor_layer.h | 71 * Determines if a resource is a compositor layer resource. 76 * resource is a compositor layer resource or <code>PP_FALSE</code> 81 * Sets the color of a solid color layer. If the layer is uninitialized, 82 * it will initialize the layer first, and then set its color. 83 * If the layer has been initialized to another kind of layer, the layer will 86 * param[in] layer A <code>PP_Resource</code> corresponding to a compositor 87 * layer resource [all...] |
/external/chromium_org/content/public/browser/android/ |
content_view_layer_renderer.h | 19 virtual void AttachLayer(blink::WebLayer* layer) = 0; 20 virtual void DetachLayer(blink::WebLayer* layer) = 0;
|
/external/chromium_org/ash/wm/ |
window_animations_unittest.cc | 14 #include "ui/compositor/layer.h" 21 using ui::Layer; 73 EXPECT_TRUE(window->layer()->visible()); 80 EXPECT_EQ(0.0f, window->layer()->GetTargetOpacity()); 81 EXPECT_FALSE(window->layer()->GetTargetVisibility()); 82 EXPECT_FALSE(window->layer()->visible()); 89 EXPECT_EQ(0.0f, window->layer()->GetTargetBrightness()); 90 EXPECT_EQ(0.0f, window->layer()->GetTargetGrayscale()); 91 EXPECT_TRUE(window->layer()->visible()); 94 window->layer()->GetAnimator()->Step(base::TimeTicks::Now() 178 Layer* layer = window->layer(); local [all...] |
/external/chromium_org/third_party/WebKit/public/platform/ |
WebContentLayer.h | 39 virtual WebLayer* layer() = 0; 41 // Set to true if the backside of this layer's contents should be visible when composited. 45 // Allow the compositor to determine the scale at which the layer should 46 // be rasterized based on the layer's hierarchy and transform. This defaults 50 // Set to draw a system-defined checkerboard if the compositor would otherwise draw a tile in this layer 51 // and the actual contents are unavailable. If false, the compositor will draw the layer's background color
|
WebImageLayer.h | 39 virtual WebLayer* layer() = 0;
|
/external/chromium_org/cc/trees/ |
layer_tree_host_common.cc | 12 #include "cc/layers/layer.h" 45 static gfx::Vector2dF GetEffectiveScrollDelta(LayerType* layer) { 46 gfx::Vector2dF scroll_delta = layer->ScrollDelta(); 48 // compositor thread since the commit for this layer tree's source frame. 51 if (layer->scroll_parent()) 52 scroll_delta += layer->scroll_parent()->ScrollDelta(); 57 static gfx::Vector2dF GetEffectiveTotalScrollOffset(LayerType* layer) { 58 gfx::Vector2dF offset = layer->TotalScrollOffset(); 61 // scroll children's positions by the main thread layer positioning code. 62 if (layer->scroll_parent() [all...] |
tree_synchronizer.cc | 15 #include "cc/layers/layer.h" 72 Layer* layer_root, 90 LayerType* layer, 92 scoped_ptr<LayerImpl> layer_impl = old_layers->take(layer->id()); 95 layer_impl = layer->CreateLayerImpl(tree_impl); 97 (*new_layers)[layer->id()] = layer_impl.get(); 105 LayerType* layer, 107 if (!layer) 111 ReuseOrCreateLayerImpl(new_layers, old_layers, layer, tree_impl); 114 for (size_t i = 0; i < layer->children().size(); ++i) [all...] |
/external/chromium_org/third_party/WebKit/Source/web/ |
GraphicsLayerFactoryChromium.cpp | 45 OwnPtr<GraphicsLayer> layer = adoptPtr(new GraphicsLayer(client)); local 46 m_webView->registerForAnimations(layer->platformLayer()); 47 return layer.release();
|
/external/chromium_org/cc/blink/ |
web_scrollbar_layer_impl.cc | 9 #include "cc/layers/layer.h" 57 blink::WebLayer* WebScrollbarLayerImpl::layer() { function in class:cc_blink::WebScrollbarLayerImpl 61 void WebScrollbarLayerImpl::setScrollLayer(blink::WebLayer* layer) { 62 cc::Layer* scroll_layer = 63 layer ? static_cast<WebLayerImpl*>(layer)->layer() : 0; 64 layer_->layer()->ToScrollbarLayer()->SetScrollLayer(scroll_layer->id()); 67 void WebScrollbarLayerImpl::setClipLayer(blink::WebLayer* layer) { 68 cc::Layer* clip_layer [all...] |
web_content_layer_impl.cc | 27 layer_->layer()->SetIsDrawable(true); 28 can_use_lcd_text_ = layer_->layer()->can_use_lcd_text(); 33 static_cast<PictureLayer*>(layer_->layer())->ClearClient(); 35 static_cast<ContentLayer*>(layer_->layer())->ClearClient(); 38 blink::WebLayer* WebContentLayerImpl::layer() { function in class:cc_blink::WebContentLayerImpl 43 layer_->layer()->SetDoubleSided(double_sided); 47 layer_->layer()->SetDrawCheckerboardForMissingTiles(enable); 68 // here can get out of sync with that in the layer. 69 if (can_use_lcd_text_ == layer_->layer()->can_use_lcd_text()) 73 if (layer_->layer()->can_use_lcd_text() && ignore_lcd_text_change_ [all...] |
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/layers/ |
LayerTreeOutline.js | 56 * @param {?WebInspector.Layer} layer 58 selectLayer: function(layer) 61 var node = layer && this._treeOutline.getCachedTreeElement(layer); 69 * @param {?WebInspector.Layer} layer 71 hoverLayer: function(layer) 73 var node = layer && this._treeOutline.getCachedTreeElement(layer); [all...] |
/external/chromium_org/third_party/skia/tests/ |
GpuLayerCacheTest.cpp | 34 GrCachedLayer* layer = cache->findLayerOrCreate(picture.uniqueID(), local 39 REPORTER_ASSERT(reporter, layer); 42 REPORTER_ASSERT(reporter, temp == layer); 46 REPORTER_ASSERT(reporter, picture.uniqueID() == layer->pictureID()); 47 REPORTER_ASSERT(reporter, layer->start() == idOffset + i + 1); 48 REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2); 49 REPORTER_ASSERT(reporter, layer->ctm() == SkMatrix::I()); 50 REPORTER_ASSERT(reporter, NULL == layer->texture()); 51 REPORTER_ASSERT(reporter, NULL == layer->paint()); 52 REPORTER_ASSERT(reporter, !layer->isAtlased()) 106 GrCachedLayer* layer = cache.findLayer(picture->uniqueID(), i+1, i+2, local 124 GrCachedLayer* layer = cache.findLayer(picture->uniqueID(), i+1, i+2, local 131 GrCachedLayer* layer = cache.findLayer(picture->uniqueID(), i+1, i+2, local 151 GrCachedLayer* layer = cache.findLayer(picture->uniqueID(), local 161 GrCachedLayer* layer = cache.findLayer(picture->uniqueID(), i+1, i+2, local [all...] |
/external/chromium-trace/trace-viewer/src/cc/ |
layer_viewer.css | 6 layer-viewer { 14 layer-viewer > layer-tree-quad-stack-viewer { 21 layer-viewer > layer-viewer-analysis {
|