| 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 SKY_COMPOSITOR_DISPLAY_DELEGATE_H_ | |
| 6 #define SKY_COMPOSITOR_DISPLAY_DELEGATE_H_ | |
| 7 | |
| 8 #include <vector> | |
| 9 | |
| 10 #include "mojo/skia/ganesh_surface.h" | |
| 11 | |
| 12 class SkCanvas; | |
| 13 | |
| 14 namespace gfx { | |
| 15 class Rect; | |
| 16 } | |
| 17 | |
| 18 namespace sky { | |
| 19 | |
| 20 class DisplayDelegate; | |
| 21 class LayerClient; | |
| 22 | |
| 23 typedef DisplayDelegate* (*CreateDisplayDelegate)(LayerClient*); | |
| 24 | |
| 25 class DisplayDelegate { | |
| 26 public: | |
| 27 DisplayDelegate() {} | |
| 28 virtual ~DisplayDelegate() {} | |
| 29 | |
| 30 static DisplayDelegate* create(LayerClient*); | |
| 31 static void setDisplayDelegateCreateFunction(CreateDisplayDelegate); | |
| 32 | |
| 33 virtual void GetPixelsForTesting(std::vector<unsigned char>* pixels) = 0; | |
| 34 virtual void Paint(mojo::GaneshSurface& surface, const gfx::Rect& size) = 0; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(DisplayDelegate); | |
| 37 }; | |
| 38 | |
| 39 | |
| 40 | |
| 41 } // namespace sky | |
| 42 | |
| 43 #endif // SKY_COMPOSITOR_DISPLAY_DELEGATE_H_ | |
| OLD | NEW |