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

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

Issue 1181723006: Move closeWindow()/setFullscreen()/setVSynv() from SkWindow to SkOSWindow (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 5 years, 6 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_Win.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_Unix_DEFINED 8 #ifndef SkOSWindow_Unix_DEFINED
9 #define SkOSWindow_Unix_DEFINED 9 #define SkOSWindow_Unix_DEFINED
10 10
(...skipping 28 matching lines...) Expand all
39 }; 39 };
40 40
41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
42 void detach(); 42 void detach();
43 void present(); 43 void present();
44 44
45 int getMSAASampleCount() const { return fMSAASampleCount; } 45 int getMSAASampleCount() const { return fMSAASampleCount; }
46 46
47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); 47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
48 48
49 void setFullscreen(bool) override; 49 bool makeFullscreen();
50 void setVsync(bool) override; 50 void setVsync(bool);
51 void closeWindow() override; 51 void closeWindow();
52 52
53 protected: 53 protected:
54 // Overridden from from SkWindow: 54 // Overridden from from SkWindow:
55 void onSetTitle(const char title[]) override; 55 void onSetTitle(const char title[]) override;
56 56
57 private: 57 private:
58 enum NextXEventResult { 58 enum NextXEventResult {
59 kContinue_NextXEventResult, 59 kContinue_NextXEventResult,
60 kQuitRequest_NextXEventResult, 60 kQuitRequest_NextXEventResult,
61 kPaintRequest_NextXEventResult 61 kPaintRequest_NextXEventResult
(...skipping 12 matching lines...) Expand all
74 74
75 // Needed for GL 75 // Needed for GL
76 XVisualInfo* fVi; 76 XVisualInfo* fVi;
77 // we recreate the underlying xwindow if this changes 77 // we recreate the underlying xwindow if this changes
78 int fMSAASampleCount; 78 int fMSAASampleCount;
79 79
80 typedef SkWindow INHERITED; 80 typedef SkWindow INHERITED;
81 }; 81 };
82 82
83 #endif 83 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Mac.h ('k') | include/views/SkOSWindow_Win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698