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

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

Issue 1346423002: Skia: Add Command Buffer support to Linux/Mac (Closed) Base URL: https://skia.googlesource.com/skia@angle_on_linux
Patch Set: make windows compile Created 5 years, 2 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') | 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 21 matching lines...) Expand all
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 39 #if SK_ANGLE
40 kANGLE_BackEndType, 40 kANGLE_BackEndType,
41 #endif // SK_ANGLE 41 #endif // SK_ANGLE
42 #if SK_COMMAND_BUFFER
43 kCommandBuffer_BackEndType,
44 #endif // SK_COMMAND_BUFFER
42 }; 45 };
43 46
44 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ; 47 bool attach(SkBackEndTypes attachType, int msaaSampleCount, AttachmentInfo*) ;
45 void detach(); 48 void detach();
46 void present(); 49 void present();
47 50
48 int getMSAASampleCount() const { return fMSAASampleCount; } 51 int getMSAASampleCount() const { return fMSAASampleCount; }
49 52
50 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay); 53 //static bool PostEvent(SkEvent* evt, SkEventSinkID, SkMSec delay);
51 54
(...skipping 25 matching lines...) Expand all
77 80
78 // Needed for GL 81 // Needed for GL
79 XVisualInfo* fVi; 82 XVisualInfo* fVi;
80 // we recreate the underlying xwindow if this changes 83 // we recreate the underlying xwindow if this changes
81 int fMSAASampleCount; 84 int fMSAASampleCount;
82 85
83 typedef SkWindow INHERITED; 86 typedef SkWindow INHERITED;
84 }; 87 };
85 88
86 #endif 89 #endif
OLDNEW
« no previous file with comments | « include/views/SkOSWindow_Mac.h ('k') | src/gpu/gl/angle/GrGLCreateANGLEInterface.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698