OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 #include "SkWindow.h" | 8 #include "SkWindow.h" |
9 #include "SkCanvas.h" | 9 #include "SkCanvas.h" |
10 #include "SkDevice.h" | 10 #include "SkDevice.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 } | 110 } |
111 } | 111 } |
112 | 112 |
113 void SkWindow::eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) | 113 void SkWindow::eraseARGB(U8CPU a, U8CPU r, U8CPU g, U8CPU b) |
114 { | 114 { |
115 fBitmap.eraseARGB(a, r, g, b); | 115 fBitmap.eraseARGB(a, r, g, b); |
116 } | 116 } |
117 | 117 |
118 void SkWindow::eraseRGB(U8CPU r, U8CPU g, U8CPU b) | 118 void SkWindow::eraseRGB(U8CPU r, U8CPU g, U8CPU b) |
119 { | 119 { |
120 fBitmap.eraseRGB(r, g, b); | 120 fBitmap.eraseARGB(0xFF, r, g, b); |
121 } | 121 } |
122 | 122 |
123 bool SkWindow::handleInval(const SkRect* localR) | 123 bool SkWindow::handleInval(const SkRect* localR) |
124 { | 124 { |
125 SkIRect ir; | 125 SkIRect ir; |
126 | 126 |
127 if (localR) { | 127 if (localR) { |
128 SkRect devR; | 128 SkRect devR; |
129 SkMatrix inverse; | 129 SkMatrix inverse; |
130 if (!fMatrix.invert(&inverse)) { | 130 if (!fMatrix.invert(&inverse)) { |
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
405 fClicks.remove(index); | 405 fClicks.remove(index); |
406 handled = true; | 406 handled = true; |
407 } | 407 } |
408 break; | 408 break; |
409 default: | 409 default: |
410 // Do nothing | 410 // Do nothing |
411 break; | 411 break; |
412 } | 412 } |
413 return handled; | 413 return handled; |
414 } | 414 } |
OLD | NEW |