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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/RecordingImageBufferSurface.h" 5 #include "platform/graphics/RecordingImageBufferSurface.h"
6 6
7 #include <memory>
7 #include "platform/WebTaskRunner.h" 8 #include "platform/WebTaskRunner.h"
8 #include "platform/graphics/GraphicsContext.h" 9 #include "platform/graphics/GraphicsContext.h"
9 #include "platform/graphics/ImageBuffer.h" 10 #include "platform/graphics/ImageBuffer.h"
10 #include "platform/graphics/ImageBufferClient.h" 11 #include "platform/graphics/ImageBufferClient.h"
11 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 12 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
12 #include "platform/graphics/paint/PaintCanvas.h" 13 #include "platform/graphics/paint/PaintCanvas.h"
13 #include "platform/graphics/paint/PaintRecord.h" 14 #include "platform/graphics/paint/PaintRecord.h"
14 #include "platform/testing/TestingPlatformSupport.h" 15 #include "platform/testing/TestingPlatformSupport.h"
15 #include "public/platform/Platform.h" 16 #include "public/platform/Platform.h"
16 #include "public/platform/WebThread.h" 17 #include "public/platform/WebThread.h"
17 #include "public/platform/WebTraceLocation.h" 18 #include "public/platform/WebTraceLocation.h"
18 #include "testing/gmock/include/gmock/gmock.h" 19 #include "testing/gmock/include/gmock/gmock.h"
19 #include "testing/gtest/include/gtest/gtest.h" 20 #include "testing/gtest/include/gtest/gtest.h"
20 #include "wtf/PtrUtil.h" 21 #include "wtf/PtrUtil.h"
21 #include "wtf/RefPtr.h" 22 #include "wtf/RefPtr.h"
22 #include <memory>
23 23
24 using testing::Test; 24 using testing::Test;
25 25
26 namespace blink { 26 namespace blink {
27 27
28 class MockSurfaceFactory : public RecordingImageBufferFallbackSurfaceFactory { 28 class MockSurfaceFactory : public RecordingImageBufferFallbackSurfaceFactory {
29 public: 29 public:
30 MockSurfaceFactory() : m_createSurfaceCount(0) {} 30 MockSurfaceFactory() : m_createSurfaceCount(0) {}
31 31
32 virtual std::unique_ptr<ImageBufferSurface> createSurface( 32 virtual std::unique_ptr<ImageBufferSurface> createSurface(
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 clearPaint.setBlendMode(SkBlendMode::kClear); 135 clearPaint.setBlendMode(SkBlendMode::kClear);
136 canvas()->drawRect(SkRect::MakeWH(testSurface()->size().width(), 136 canvas()->drawRect(SkRect::MakeWH(testSurface()->size().width(),
137 testSurface()->size().height()), 137 testSurface()->size().height()),
138 clearPaint); 138 clearPaint);
139 testSurface()->didDraw(FloatRect(0, 0, 1, 1)); 139 testSurface()->didDraw(FloatRect(0, 0, 1, 1));
140 testSurface()->getRecord(); 140 testSurface()->getRecord();
141 expectDisplayListEnabled(true); 141 expectDisplayListEnabled(true);
142 } 142 }
143 143
144 } // namespace blink 144 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698