Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_BLIMP_LAYER_FACTORY_H_ | |
| 6 #define CC_BLIMP_LAYER_FACTORY_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "base/memory/ref_counted.h" | |
| 10 | |
| 11 namespace cc { | |
| 12 class Layer; | |
| 13 | |
| 14 // Used to allow tests to inject the Layer created by the | |
| 15 // CompositorStateDeserializer on the client. | |
| 16 class LayerFactory { | |
| 17 public: | |
| 18 virtual ~LayerFactory() {} | |
| 19 | |
| 20 virtual scoped_refptr<Layer> CreateLayer(int engine_layer_id) = 0; | |
|
ajuma
2016/10/04 15:45:10
When you start to expand test coverage, you'll nee
Khushal
2016/10/04 18:34:47
Sounds good. For each of them we can add methods t
| |
| 21 }; | |
| 22 | |
| 23 } // namespace cc | |
| 24 | |
| 25 #endif // CC_BLIMP_LAYER_FACTORY_H_ | |
| OLD | NEW |