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

Side by Side Diff: src/views/SkWindow.cpp

Issue 51033004: add SK_ATTR_DEPRECATED -- will need to disable for chrome, since it triggers a warning (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/utils/debugger/SkObjectParser.cpp ('k') | tests/BitmapCopyTest.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 /* 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
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
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 }
OLDNEW
« no previous file with comments | « src/utils/debugger/SkObjectParser.cpp ('k') | tests/BitmapCopyTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698