diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-04 13:57:56 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-08-04 13:57:56 +0000 |
commit | f2164b2000bd772650928593f1655bd84766fa8d (patch) | |
tree | 59a1ada890242e8da8b6241094d6306525d90ddb /src/utils/unix/SkOSWindow_Unix.cpp | |
parent | 87fac4abd7ea446c05d5cfd4a8ad27420223b591 (diff) |
use new SkEvent notion of passing targetID to constructor
git-svn-id: http://skia.googlecode.com/svn/trunk@2042 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils/unix/SkOSWindow_Unix.cpp')
-rw-r--r-- | src/utils/unix/SkOSWindow_Unix.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/utils/unix/SkOSWindow_Unix.cpp b/src/utils/unix/SkOSWindow_Unix.cpp index 8fe064d87e..b4b0f17cd6 100644 --- a/src/utils/unix/SkOSWindow_Unix.cpp +++ b/src/utils/unix/SkOSWindow_Unix.cpp @@ -222,10 +222,8 @@ void SkOSWindow::onSetTitle(const char title[]) XSetWMName(fUnixWindow.fDisplay, fUnixWindow.fWin, &textProp); } -void SkOSWindow::onHandleInval(const SkIRect&) -{ - SkEvent* evt = new SkEvent("inval-imageview"); - evt->post(getSinkID()); +void SkOSWindow::onHandleInval(const SkIRect&) { + (new SkEvent("inval-imageview", this->getSinkID()))->post(); } bool SkOSWindow::onEvent(const SkEvent& evt) |