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

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

Issue 1329553004: Add a FOUC painting test. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix build. 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/SimCompositor.cpp ('k') | Source/web/tests/sim/SimDisplayItemList.cpp » ('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 #ifndef SimDisplayItemList_h
6 #define SimDisplayItemList_h
7
8 #include "public/platform/WebDisplayItemList.h"
9 #include "web/tests/sim/SimCanvas.h"
10 #include "wtf/text/WTFString.h"
11
12 namespace blink {
13
14 class SimDisplayItemList final : public WebDisplayItemList {
15 public:
16 SimDisplayItemList();
17
18 void appendDrawingItem(const SkPicture*) override;
19
20 int drawCount() const { return m_commands.size(); }
21
22 bool containsText() const { return m_containsText; }
23 bool contains(SimCanvas::CommandType, const String& colorString = String()) const;
24
25 private:
26 bool m_containsText;
27 Vector<SimCanvas::Command> m_commands;
28 };
29
30 } // namespace blink
31
32 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/sim/SimCompositor.cpp ('k') | Source/web/tests/sim/SimDisplayItemList.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698