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

Side by Side Diff: include/views/SkOSWindow_Android.h

Issue 2117793002: Try fix the mac build bot after removing Android SampleApp (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Try fix the build bot Created 4 years, 5 months 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
« no previous file with comments | « gyp/tools.gyp ('k') | include/views/SkWindow.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 /*
2 * Copyright 2011 Skia
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8 #ifndef SkOSWindow_Android_DEFINED
9 #define SkOSWindow_Android_DEFINED
10
11 #include "SkWindow.h"
12
13 #include <EGL/egl.h>
14
15 struct SkAndroidWindow {
16 EGLDisplay fDisplay;
17 EGLSurface fSurface;
18 EGLContext fContext;
19 };
20
21 class SkOSWindow : public SkWindow {
22 public:
23 SkOSWindow(void*);
24 ~SkOSWindow();
25
26 enum SkBackEndTypes {
27 kNone_BackEndType,
28 kNativeGL_BackEndType,
29 };
30
31 bool attach(SkBackEndTypes attachType, int msaaSampleCount, bool deepColor,
32 AttachmentInfo* info);
33 void release();
34 void present();
35 bool makeFullscreen() { return true; }
36 void closeWindow();
37 void setVsync(bool);
38 bool destroyRequested() { return fDestroyRequested; }
39
40 protected:
41 // overrides from SkWindow
42 virtual void onHandleInval(const SkIRect&);
43 virtual void onSetTitle(const char title[]);
44
45 private:
46 SkAndroidWindow fWindow;
47 ANativeWindow* fNativeWindow;
48 bool fDestroyRequested;
49
50 typedef SkWindow INHERITED;
51 };
52
53 #endif
OLDNEW
« no previous file with comments | « gyp/tools.gyp ('k') | include/views/SkWindow.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698