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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp

Issue 2219523004: CL for perf tryjob on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 "platform/graphics/paint/PaintChunker.h" 5 #include "platform/graphics/paint/PaintChunker.h"
6 6
7 #include "platform/RuntimeEnabledFeatures.h" 7 #include "platform/RuntimeEnabledFeatures.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 10
(...skipping 24 matching lines...) Expand all
35 }; 35 };
36 36
37 class TestDisplayItem : public DisplayItem, public DisplayItemClient { 37 class TestDisplayItem : public DisplayItem, public DisplayItemClient {
38 public: 38 public:
39 TestDisplayItem(DisplayItem::Type type) : DisplayItem(*this, type, sizeof(*t his)) { } 39 TestDisplayItem(DisplayItem::Type type) : DisplayItem(*this, type, sizeof(*t his)) { }
40 40
41 void replay(GraphicsContext&) const final { NOTREACHED(); } 41 void replay(GraphicsContext&) const final { NOTREACHED(); }
42 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const f inal { NOTREACHED(); } 42 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const f inal { NOTREACHED(); }
43 String debugName() const final { return "Test"; } 43 String debugName() const final { return "Test"; }
44 LayoutRect visualRect() const final { return LayoutRect(); } 44 LayoutRect visualRect() const final { return LayoutRect(); }
45
46 DISPLAY_ITEM_CACHE_STATUS_IMPLEMENTATION
45 }; 47 };
46 48
47 class NormalTestDisplayItem : public TestDisplayItem { 49 class NormalTestDisplayItem : public TestDisplayItem {
48 public: 50 public:
49 NormalTestDisplayItem() : TestDisplayItem(DisplayItem::DrawingFirst) { } 51 NormalTestDisplayItem() : TestDisplayItem(DisplayItem::DrawingFirst) { }
50 }; 52 };
51 53
52 class TestDisplayItemRequiringSeparateChunk : public TestDisplayItem { 54 class TestDisplayItemRequiringSeparateChunk : public TestDisplayItem {
53 public: 55 public:
54 TestDisplayItemRequiringSeparateChunk() : TestDisplayItem(DisplayItem::Forei gnLayerPlugin) { } 56 TestDisplayItemRequiringSeparateChunk() : TestDisplayItem(DisplayItem::Forei gnLayerPlugin) { }
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 PaintChunk(2, 4, nullptr, simpleTransform), 315 PaintChunk(2, 4, nullptr, simpleTransform),
314 PaintChunk(4, 5, nullptr, simpleTransform), 316 PaintChunk(4, 5, nullptr, simpleTransform),
315 PaintChunk(5, 6, nullptr, simpleTransform), 317 PaintChunk(5, 6, nullptr, simpleTransform),
316 PaintChunk(6, 7, nullptr, rootPaintChunkProperties()))); 318 PaintChunk(6, 7, nullptr, rootPaintChunkProperties())));
317 } 319 }
318 320
319 #endif 321 #endif
320 322
321 } // namespace 323 } // namespace
322 } // namespace blink 324 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698