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

Unified Diff: include/views/SkOSWindow_Unix.h

Issue 17275003: use select() so we can wait for XEvents or our timer (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/views/unix/SkOSWindow_Unix.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/views/SkOSWindow_Unix.h
diff --git a/include/views/SkOSWindow_Unix.h b/include/views/SkOSWindow_Unix.h
index 89265a4367ab2195d06fd7104ea4c5df6e2bfbc5..8a55ef455ef1f98892345a4d11efba03718a8b74 100644
--- a/include/views/SkOSWindow_Unix.h
+++ b/include/views/SkOSWindow_Unix.h
@@ -32,7 +32,6 @@ public:
void* getDisplay() const { return (void*)fUnixWindow.fDisplay; }
void* getUnixWindow() const { return (void*)&fUnixWindow; }
void loop();
- void post_linuxevent();
enum SkBackEndTypes {
kNone_BackEndType,
@@ -54,14 +53,16 @@ public:
protected:
// Overridden from from SkWindow:
- virtual bool onEvent(const SkEvent&) SK_OVERRIDE;
- virtual void onHandleInval(const SkIRect&) SK_OVERRIDE;
- virtual bool onHandleChar(SkUnichar) SK_OVERRIDE;
- virtual bool onHandleKey(SkKey) SK_OVERRIDE;
- virtual bool onHandleKeyUp(SkKey) SK_OVERRIDE;
virtual void onSetTitle(const char title[]) SK_OVERRIDE;
private:
+ enum NextXEventResult {
+ kContinue_NextXEventResult,
+ kQuitRequest_NextXEventResult,
+ kPaintRequest_NextXEventResult
+ };
+
+ NextXEventResult nextXEvent();
void doPaint();
void mapWindowAndWait();
« no previous file with comments | « no previous file | src/views/unix/SkOSWindow_Unix.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698