Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CC_RESOURCES_RASTER_BUFFER_H_ | |
| 6 #define CC_RESOURCES_RASTER_BUFFER_H_ | |
| 7 | |
| 8 class SkCanvas; | |
| 9 | |
| 10 namespace cc { | |
| 11 | |
| 12 class RasterBuffer { | |
| 13 public: | |
| 14 virtual SkCanvas* GetSkCanvas() = 0; | |
| 15 virtual void Flush() = 0; | |
|
reveman
2014/08/11 20:32:36
How about Acquire/ReleaseSkCanvas()? Acquire can a
auygun
2014/08/12 13:36:35
Done.
| |
| 16 | |
| 17 protected: | |
| 18 RasterBuffer(); | |
|
reveman
2014/08/11 20:32:36
you don't need this for fully abstract class.
auygun
2014/08/12 13:36:35
Done.
| |
| 19 virtual ~RasterBuffer(); | |
|
reveman
2014/08/11 20:32:36
you can add an empty implementation here and remov
auygun
2014/08/12 13:36:35
Done.
| |
| 20 }; | |
| 21 | |
| 22 } // namespace cc | |
| 23 | |
| 24 #endif // CC_RESOURCES_RASTER_BUFFER_H_ | |
| OLD | NEW |