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

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

Issue 890873003: update example (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove multiple example cruft Created 5 years, 10 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_NaCl.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 20 matching lines...) Expand all
31 void* getHWND() const { return (void*)fUnixWindow.fWin; } 31 void* getHWND() const { return (void*)fUnixWindow.fWin; }
32 void* getDisplay() const { return (void*)fUnixWindow.fDisplay; } 32 void* getDisplay() const { return (void*)fUnixWindow.fDisplay; }
33 void* getUnixWindow() const { return (void*)&fUnixWindow; } 33 void* getUnixWindow() const { return (void*)&fUnixWindow; }
34 void loop(); 34 void loop();
35 35
36 enum SkBackEndTypes { 36 enum SkBackEndTypes {
37 kNone_BackEndType, 37 kNone_BackEndType,
38 kNativeGL_BackEndType, 38 kNativeGL_BackEndType,
39 }; 39 };
40 40
41 struct AttachmentInfo {
42 int fSampleCount;
43 int fStencilBits;
44 };
45
46 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
47 void detach(); 42 void detach();
48 void present(); 43 void present();
49 44
50 int getMSAASampleCount() const { return fMSAASampleCount; } 45 int getMSAASampleCount() const { return fMSAASampleCount; }
51 46
52 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); 47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
53 48
54 protected: 49 protected:
55 // Overridden from from SkWindow: 50 // Overridden from from SkWindow:
(...skipping 17 matching lines...) Expand all
73 68
74 // Needed for GL 69 // Needed for GL
75 XVisualInfo* fVi; 70 XVisualInfo* fVi;
76 // we recreate the underlying xwindow if this changes 71 // we recreate the underlying xwindow if this changes
77 int fMSAASampleCount; 72 int fMSAASampleCount;
78 73
79 typedef SkWindow INHERITED; 74 typedef SkWindow INHERITED;
80 }; 75 };
81 76
82 #endif 77 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_NaCl.h ('k') | include/views/SkOSWindow_Win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698