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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/web/tests/sim/SimCompositor.cpp ('k') | Source/web/tests/sim/SimDisplayItemList.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/sim/SimDisplayItemList.h
diff --git a/Source/web/tests/sim/SimDisplayItemList.h b/Source/web/tests/sim/SimDisplayItemList.h
new file mode 100644
index 0000000000000000000000000000000000000000..dcd890036fce94ae8abbe69741b4d62232a346bc
--- /dev/null
+++ b/Source/web/tests/sim/SimDisplayItemList.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef SimDisplayItemList_h
+#define SimDisplayItemList_h
+
+#include "public/platform/WebDisplayItemList.h"
+#include "web/tests/sim/SimCanvas.h"
+#include "wtf/text/WTFString.h"
+
+namespace blink {
+
+class SimDisplayItemList final : public WebDisplayItemList {
+public:
+ SimDisplayItemList();
+
+ void appendDrawingItem(const SkPicture*) override;
+
+ int drawCount() const { return m_commands.size(); }
+
+ bool containsText() const { return m_containsText; }
+ bool contains(SimCanvas::CommandType, const String& colorString = String()) const;
+
+private:
+ bool m_containsText;
+ Vector<SimCanvas::Command> m_commands;
+};
+
+} // namespace blink
+
+#endif
« 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