Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Side by Side Diff: sky/compositor/display_delegate.h

Issue 797063002: Make reftests work for sky. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: address review comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698