OLD | NEW |
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 #ifndef CC_TEST_FAKE_RESOURCE_PROVIDER_H_ | 5 #ifndef CC_TEST_FAKE_RESOURCE_PROVIDER_H_ |
6 #define CC_TEST_FAKE_RESOURCE_PROVIDER_H_ | 6 #define CC_TEST_FAKE_RESOURCE_PROVIDER_H_ |
7 | 7 |
| 8 #include <stddef.h> |
| 9 |
8 #include "cc/resources/resource_provider.h" | 10 #include "cc/resources/resource_provider.h" |
9 #include "ui/gfx/buffer_types.h" | 11 #include "ui/gfx/buffer_types.h" |
10 | 12 |
11 namespace cc { | 13 namespace cc { |
12 | 14 |
13 class FakeResourceProvider : public ResourceProvider { | 15 class FakeResourceProvider : public ResourceProvider { |
14 public: | 16 public: |
15 static scoped_ptr<FakeResourceProvider> Create( | 17 static scoped_ptr<FakeResourceProvider> Create( |
16 OutputSurface* output_surface, | 18 OutputSurface* output_surface, |
17 SharedBitmapManager* shared_bitmap_manager) { | 19 SharedBitmapManager* shared_bitmap_manager) { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 blocking_main_thread_task_runner, | 53 blocking_main_thread_task_runner, |
52 highp_threshold_min, | 54 highp_threshold_min, |
53 id_allocation_chunk_size, | 55 id_allocation_chunk_size, |
54 use_gpu_memory_buffer_resources, | 56 use_gpu_memory_buffer_resources, |
55 use_image_texture_targets) {} | 57 use_image_texture_targets) {} |
56 }; | 58 }; |
57 | 59 |
58 } // namespace cc | 60 } // namespace cc |
59 | 61 |
60 #endif // CC_TEST_FAKE_RESOURCE_PROVIDER_H_ | 62 #endif // CC_TEST_FAKE_RESOURCE_PROVIDER_H_ |
OLD | NEW |