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

Side by Side Diff: Source/web/tests/sim/SimDisplayItemList.cpp

Issue 1316673009: Revert of Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/tests/sim/SimDisplayItemList.h ('k') | Source/web/tests/sim/SimLayerTreeView.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "config.h"
6 #include "web/tests/sim/SimDisplayItemList.h"
7
8 #include "third_party/skia/include/core/SkPicture.h"
9
10 namespace blink {
11
12 SimDisplayItemList::SimDisplayItemList()
13 : m_didDrawText(false)
14 , m_drawCount(0)
15 {
16 }
17
18 void SimDisplayItemList::appendDrawingItem(const SkPicture* picture)
19 {
20 // There's not much we can tell about a picture, but we can tell if it
21 // contains text. Ideally paint slimming would have a higher level
22 // display list (or special GraphicsContext) so unit tests could query
23 // what kind of things were painted.
24 m_didDrawText |= picture->hasText();
25 m_drawCount += picture->approximateOpCount();
26 }
27
28 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/tests/sim/SimDisplayItemList.h ('k') | Source/web/tests/sim/SimLayerTreeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698