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

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

Issue 1343193005: skia: Add support for ANGLE on linux (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: who knows, gyp makes no sense. Created 5 years, 3 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/common_variables.gypi ('k') | src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp » ('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 18 matching lines...) Expand all
29 ~SkOSWindow(); 29 ~SkOSWindow();
30 30
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 #if SK_ANGLE
40 kANGLE_BackEndType,
41 #endif // SK_ANGLE
39 }; 42 };
40 43
41 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 44 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
42 void detach(); 45 void detach();
43 void present(); 46 void present();
44 47
45 int getMSAASampleCount() const { return fMSAASampleCount; } 48 int getMSAASampleCount() const { return fMSAASampleCount; }
46 49
47 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); 50 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
48 51
(...skipping 25 matching lines...) Expand all
74 77
75 // Needed for GL 78 // Needed for GL
76 XVisualInfo* fVi; 79 XVisualInfo* fVi;
77 // we recreate the underlying xwindow if this changes 80 // we recreate the underlying xwindow if this changes
78 int fMSAASampleCount; 81 int fMSAASampleCount;
79 82
80 typedef SkWindow INHERITED; 83 typedef SkWindow INHERITED;
81 }; 84 };
82 85
83 #endif 86 #endif
OLDNEW
« no previous file with comments | « gyp/common_variables.gypi ('k') | src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698