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

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: Clean up. 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
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..c898079e3d704ecfc4ce7caba87674a8333ec3ee
--- /dev/null
+++ b/Source/web/tests/sim/SimDisplayItemList.h
@@ -0,0 +1,28 @@
+// 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"
+
+namespace blink {
+
+class SimDisplayItemList final : public WebDisplayItemList {
+public:
+ SimDisplayItemList();
+
+ void appendDrawingItem(const SkPicture*) override;
+
+ bool didDrawText() const { return m_didDrawText; }
+ int drawCount() const { return m_drawCount; }
+
+private:
+ bool m_didDrawText;
+ int m_drawCount;
+};
+
+} // namespace blink
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698