OLD | NEW |
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 16 matching lines...) Expand all Loading... |
27 | 27 |
28 #include "SkSurface.h" | 28 #include "SkSurface.h" |
29 #include "platform/graphics/ImageBuffer.h" | 29 #include "platform/graphics/ImageBuffer.h" |
30 #include "platform/graphics/test/MockWebGraphicsContext3D.h" | 30 #include "platform/graphics/test/MockWebGraphicsContext3D.h" |
31 #include "public/platform/Platform.h" | 31 #include "public/platform/Platform.h" |
32 #include "public/platform/WebExternalBitmap.h" | 32 #include "public/platform/WebExternalBitmap.h" |
33 #include "public/platform/WebGraphicsContext3DProvider.h" | 33 #include "public/platform/WebGraphicsContext3DProvider.h" |
34 #include "public/platform/WebThread.h" | 34 #include "public/platform/WebThread.h" |
35 #include "testing/gmock/include/gmock/gmock.h" | 35 #include "testing/gmock/include/gmock/gmock.h" |
36 #include "testing/gtest/include/gtest/gtest.h" | 36 #include "testing/gtest/include/gtest/gtest.h" |
37 #include "third_party/skia/include/core/SkDevice.h" | 37 #include "third_party/skia/include/core/SkCanvas.h" |
38 #include "third_party/skia/include/gpu/GrContext.h" | 38 #include "third_party/skia/include/gpu/GrContext.h" |
39 #include "third_party/skia/include/gpu/gl/SkNullGLContext.h" | 39 #include "third_party/skia/include/gpu/gl/SkNullGLContext.h" |
40 #include "wtf/RefPtr.h" | 40 #include "wtf/RefPtr.h" |
41 | 41 |
42 using testing::InSequence; | 42 using testing::InSequence; |
43 using testing::Return; | 43 using testing::Return; |
44 using testing::Test; | 44 using testing::Test; |
45 | 45 |
46 namespace blink { | 46 namespace blink { |
47 | 47 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
330 { | 330 { |
331 fallbackToSoftwareIfContextLost(); | 331 fallbackToSoftwareIfContextLost(); |
332 } | 332 } |
333 | 333 |
334 TEST_F(Canvas2DLayerBridgeTest, FallbackToSoftwareOnFailedTextureAlloc) | 334 TEST_F(Canvas2DLayerBridgeTest, FallbackToSoftwareOnFailedTextureAlloc) |
335 { | 335 { |
336 fallbackToSoftwareOnFailedTextureAlloc(); | 336 fallbackToSoftwareOnFailedTextureAlloc(); |
337 } | 337 } |
338 | 338 |
339 } // namespace blink | 339 } // namespace blink |
OLD | NEW |