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

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

Issue 1809733002: detach -> release (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: (C) Created 4 years, 9 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 | « include/views/SkOSWindow_Mac.h ('k') | include/views/SkOSWindow_Unix.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2006 The Android Open Source Project 2 * Copyright 2006 The Android Open Source Project
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkOSWindow_SDL_DEFINED 8 #ifndef SkOSWindow_SDL_DEFINED
9 #define SkOSWindow_SDL_DEFINED 9 #define SkOSWindow_SDL_DEFINED
10 10
(...skipping 10 matching lines...) Expand all
21 kNone_BackEndType, // TODO: remove this, it's not a real option. 21 kNone_BackEndType, // TODO: remove this, it's not a real option.
22 kNativeGL_BackEndType, 22 kNativeGL_BackEndType,
23 #if SK_ANGLE 23 #if SK_ANGLE
24 kANGLE_BackEndType, 24 kANGLE_BackEndType,
25 #endif // SK_ANGLE 25 #endif // SK_ANGLE
26 #if SK_COMMAND_BUFFER 26 #if SK_COMMAND_BUFFER
27 kCommandBuffer_BackEndType, 27 kCommandBuffer_BackEndType,
28 #endif // SK_COMMAND_BUFFER 28 #endif // SK_COMMAND_BUFFER
29 }; 29 };
30 30
31 void detach(); 31 void release();
32 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 32 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
33 void present(); 33 void present();
34 bool makeFullscreen(); 34 bool makeFullscreen();
35 void setVsync(bool); 35 void setVsync(bool);
36 void closeWindow(); 36 void closeWindow();
37 static void RunEventLoop(); 37 static void RunEventLoop();
38 38
39 protected: 39 protected:
40 void onSetTitle(const char title[]) override; 40 void onSetTitle(const char title[]) override;
41 41
42 private: 42 private:
43 void createWindow(int msaaSampleCount); 43 void createWindow(int msaaSampleCount);
44 void destroyWindow(); 44 void destroyWindow();
45 void updateWindowTitle(); 45 void updateWindowTitle();
46 static SkOSWindow* GetInstanceForWindowID(Uint32 windowID); 46 static SkOSWindow* GetInstanceForWindowID(Uint32 windowID);
47 static bool HasDirtyWindows(); 47 static bool HasDirtyWindows();
48 static void UpdateDirtyWindows(); 48 static void UpdateDirtyWindows();
49 static void HandleEvent(const SDL_Event&); 49 static void HandleEvent(const SDL_Event&);
50 50
51 SDL_Window* fWindow; 51 SDL_Window* fWindow;
52 SDL_GLContext fGLContext; 52 SDL_GLContext fGLContext;
53 int fWindowMSAASampleCount; 53 int fWindowMSAASampleCount;
54 typedef SkWindow INHERITED; 54 typedef SkWindow INHERITED;
55 }; 55 };
56 56
57 #endif 57 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Mac.h ('k') | include/views/SkOSWindow_Unix.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698