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

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

Issue 2764633002: cc/paint: Remove cc::PaintSurface. (Closed)
Patch Set: fix for relanding Created 3 years, 8 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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 18 matching lines...) Expand all
29 #include "cc/resources/texture_mailbox.h" 29 #include "cc/resources/texture_mailbox.h"
30 #include "cc/test/test_gpu_memory_buffer_manager.h" 30 #include "cc/test/test_gpu_memory_buffer_manager.h"
31 #include "gpu/command_buffer/client/gles2_interface.h" 31 #include "gpu/command_buffer/client/gles2_interface.h"
32 #include "gpu/command_buffer/common/capabilities.h" 32 #include "gpu/command_buffer/common/capabilities.h"
33 #include "platform/CrossThreadFunctional.h" 33 #include "platform/CrossThreadFunctional.h"
34 #include "platform/WaitableEvent.h" 34 #include "platform/WaitableEvent.h"
35 #include "platform/WebTaskRunner.h" 35 #include "platform/WebTaskRunner.h"
36 #include "platform/graphics/ImageBuffer.h" 36 #include "platform/graphics/ImageBuffer.h"
37 #include "platform/graphics/UnacceleratedImageBufferSurface.h" 37 #include "platform/graphics/UnacceleratedImageBufferSurface.h"
38 #include "platform/graphics/paint/PaintFlags.h" 38 #include "platform/graphics/paint/PaintFlags.h"
39 #include "platform/graphics/paint/PaintSurface.h"
40 #include "platform/graphics/test/FakeGLES2Interface.h" 39 #include "platform/graphics/test/FakeGLES2Interface.h"
41 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h" 40 #include "platform/graphics/test/FakeWebGraphicsContext3DProvider.h"
42 #include "public/platform/Platform.h" 41 #include "public/platform/Platform.h"
43 #include "public/platform/WebExternalBitmap.h" 42 #include "public/platform/WebExternalBitmap.h"
44 #include "public/platform/WebScheduler.h" 43 #include "public/platform/WebScheduler.h"
45 #include "public/platform/WebThread.h" 44 #include "public/platform/WebThread.h"
46 #include "public/platform/WebTraceLocation.h" 45 #include "public/platform/WebTraceLocation.h"
47 #include "skia/ext/texture_handle.h" 46 #include "skia/ext/texture_handle.h"
48 #include "testing/gmock/include/gmock/gmock.h" 47 #include "testing/gmock/include/gmock/gmock.h"
49 #include "testing/gtest/include/gtest/gtest.h" 48 #include "testing/gtest/include/gtest/gtest.h"
50 #include "third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h" 49 #include "third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h"
50 #include "third_party/skia/include/core/SkSurface.h"
51 #include "third_party/skia/include/gpu/gl/GrGLTypes.h" 51 #include "third_party/skia/include/gpu/gl/GrGLTypes.h"
52 #include "wtf/PtrUtil.h" 52 #include "wtf/PtrUtil.h"
53 #include "wtf/RefPtr.h" 53 #include "wtf/RefPtr.h"
54 54
55 #include <memory> 55 #include <memory>
56 56
57 using testing::AnyNumber; 57 using testing::AnyNumber;
58 using testing::AtLeast; 58 using testing::AtLeast;
59 using testing::InSequence; 59 using testing::InSequence;
60 using testing::Return; 60 using testing::Return;
(...skipping 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after
1368 EXPECT_FALSE(bridge->hasRecordedDrawCommands()); 1368 EXPECT_FALSE(bridge->hasRecordedDrawCommands());
1369 ::testing::Mock::VerifyAndClearExpectations(&gl); 1369 ::testing::Mock::VerifyAndClearExpectations(&gl);
1370 1370
1371 EXPECT_CALL(gl, Flush()).Times(1); 1371 EXPECT_CALL(gl, Flush()).Times(1);
1372 bridge->flushGpu(); 1372 bridge->flushGpu();
1373 EXPECT_FALSE(bridge->hasRecordedDrawCommands()); 1373 EXPECT_FALSE(bridge->hasRecordedDrawCommands());
1374 ::testing::Mock::VerifyAndClearExpectations(&gl); 1374 ::testing::Mock::VerifyAndClearExpectations(&gl);
1375 } 1375 }
1376 1376
1377 } // namespace blink 1377 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698