Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Side by Side Diff: Source/platform/graphics/paint/FixedPositionContainerDisplayItem.cpp

Issue 1193433004: Blink-side contiguous allocation of display items. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Ready for review Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 #include "platform/graphics/paint/FixedPositionContainerDisplayItem.h" 6 #include "platform/graphics/paint/FixedPositionContainerDisplayItem.h"
7 7
8 #include "platform/graphics/GraphicsContext.h" 8 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/paint/DisplayItems.h"
9 #include "platform/transforms/AffineTransform.h" 10 #include "platform/transforms/AffineTransform.h"
10 #include "public/platform/WebDisplayItemList.h" 11 #include "public/platform/WebDisplayItemList.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 void BeginFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDispl ayItemList* list) const 15 void BeginFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDispl ayItemList* list) const
15 { 16 {
16 // TODO(trchen): Should implement the compositor counterpart and update tran sform tree algorithm. 17 // TODO(trchen): Should implement the compositor counterpart and update tran sform tree algorithm.
17 } 18 }
18 19
20 void BeginFixedPositionContainerDisplayItem::appendByMoving(DisplayItems& destin ation)
21 {
22 destination.emplaceBack<BeginFixedPositionContainerDisplayItem>(
23 DisplayItemClientWrapperHelper(*this));
24 }
25
19 void EndFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDisplay ItemList* list) const 26 void EndFixedPositionContainerDisplayItem::appendToWebDisplayItemList(WebDisplay ItemList* list) const
20 { 27 {
21 // TODO(trchen): Should implement the compositor counterpart and update tran sform tree algorithm. 28 // TODO(trchen): Should implement the compositor counterpart and update tran sform tree algorithm.
22 } 29 }
23 30
31 void EndFixedPositionContainerDisplayItem::appendByMoving(DisplayItems& destinat ion)
32 {
33 destination.emplaceBack<EndFixedPositionContainerDisplayItem>(
34 DisplayItemClientWrapperHelper(*this));
35 }
36
24 } // namespace blink 37 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698