| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2003, 2004, 2005, 2006, 2009 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2013 Google Inc. All rights reserved. | 3 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1323 ASSERT(m_canvas); | 1323 ASSERT(m_canvas); |
| 1324 if (contextDisabled()) | 1324 if (contextDisabled()) |
| 1325 return; | 1325 return; |
| 1326 | 1326 |
| 1327 m_canvas->drawRRect(rrect, paint); | 1327 m_canvas->drawRRect(rrect, paint); |
| 1328 | 1328 |
| 1329 if (regionTrackingEnabled()) | 1329 if (regionTrackingEnabled()) |
| 1330 m_trackedRegion.didDrawBounded(this, rrect.rect(), paint); | 1330 m_trackedRegion.didDrawBounded(this, rrect.rect(), paint); |
| 1331 } | 1331 } |
| 1332 | 1332 |
| 1333 void GraphicsContext::didDrawRect(const SkRect& rect, const SkPaint& paint, cons
t SkBitmap* bitmap) | |
| 1334 { | |
| 1335 if (contextDisabled()) | |
| 1336 return; | |
| 1337 | |
| 1338 if (regionTrackingEnabled()) | |
| 1339 m_trackedRegion.didDrawRect(this, rect, paint, bitmap); | |
| 1340 } | |
| 1341 | |
| 1342 void GraphicsContext::drawPosText(const void* text, size_t byteLength, | 1333 void GraphicsContext::drawPosText(const void* text, size_t byteLength, |
| 1343 const SkPoint pos[], const SkRect& textRect, const SkPaint& paint) | 1334 const SkPoint pos[], const SkRect& textRect, const SkPaint& paint) |
| 1344 { | 1335 { |
| 1345 ASSERT(m_canvas); | 1336 ASSERT(m_canvas); |
| 1346 if (contextDisabled()) | 1337 if (contextDisabled()) |
| 1347 return; | 1338 return; |
| 1348 | 1339 |
| 1349 m_canvas->drawPosText(text, byteLength, pos, paint); | 1340 m_canvas->drawPosText(text, byteLength, pos, paint); |
| 1350 didDrawTextInRect(textRect); | 1341 didDrawTextInRect(textRect); |
| 1351 | 1342 |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2047 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag | 2038 // FIXME: This is to not break tests (it results in the filter bitmap fl
ag |
| 2048 // being set to true). We need to decide if we respect InterpolationNone | 2039 // being set to true). We need to decide if we respect InterpolationNone |
| 2049 // being returned from computeInterpolationQuality. | 2040 // being returned from computeInterpolationQuality. |
| 2050 resampling = InterpolationLow; | 2041 resampling = InterpolationLow; |
| 2051 } | 2042 } |
| 2052 resampling = limitInterpolationQuality(this, resampling); | 2043 resampling = limitInterpolationQuality(this, resampling); |
| 2053 paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling)); | 2044 paint->setFilterLevel(static_cast<SkPaint::FilterLevel>(resampling)); |
| 2054 } | 2045 } |
| 2055 | 2046 |
| 2056 } // namespace blink | 2047 } // namespace blink |
| OLD | NEW |