OLD | NEW |
1 // Copyright (c) 2008, Google Inc. All rights reserved. | 1 // Copyright (c) 2008, Google Inc. All rights reserved. |
2 // | 2 // |
3 // Redistribution and use in source and binary forms, with or without | 3 // Redistribution and use in source and binary forms, with or without |
4 // modification, are permitted provided that the following conditions are | 4 // modification, are permitted provided that the following conditions are |
5 // met: | 5 // met: |
6 // | 6 // |
7 // * Redistributions of source code must retain the above copyright | 7 // * Redistributions of source code must retain the above copyright |
8 // notice, this list of conditions and the following disclaimer. | 8 // notice, this list of conditions and the following disclaimer. |
9 // * Redistributions in binary form must reproduce the above | 9 // * Redistributions in binary form must reproduce the above |
10 // copyright notice, this list of conditions and the following disclaimer | 10 // copyright notice, this list of conditions and the following disclaimer |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
312 void PlatformContextSkia::setPorterDuffMode(SkPorterDuff::Mode pdm) | 312 void PlatformContextSkia::setPorterDuffMode(SkPorterDuff::Mode pdm) |
313 { | 313 { |
314 m_state->m_porterDuffMode = pdm; | 314 m_state->m_porterDuffMode = pdm; |
315 } | 315 } |
316 | 316 |
317 void PlatformContextSkia::setFillColor(SkColor color) | 317 void PlatformContextSkia::setFillColor(SkColor color) |
318 { | 318 { |
319 m_state->m_fillColor = color; | 319 m_state->m_fillColor = color; |
320 } | 320 } |
321 | 321 |
| 322 SkDrawLooper* PlatformContextSkia::getDrawLooper() const |
| 323 { |
| 324 return m_state->m_looper; |
| 325 } |
| 326 |
322 WebCore::StrokeStyle PlatformContextSkia::getStrokeStyle() const | 327 WebCore::StrokeStyle PlatformContextSkia::getStrokeStyle() const |
323 { | 328 { |
324 return m_state->m_strokeStyle; | 329 return m_state->m_strokeStyle; |
325 } | 330 } |
326 | 331 |
327 void PlatformContextSkia::setStrokeStyle(WebCore::StrokeStyle strokestyle) | 332 void PlatformContextSkia::setStrokeStyle(WebCore::StrokeStyle strokestyle) |
328 { | 333 { |
329 m_state->m_strokeStyle = strokestyle; | 334 m_state->m_strokeStyle = strokestyle; |
330 } | 335 } |
331 | 336 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
414 | 419 |
415 const SkBitmap* PlatformContextSkia::bitmap() const | 420 const SkBitmap* PlatformContextSkia::bitmap() const |
416 { | 421 { |
417 return &m_canvas->getDevice()->accessBitmap(false); | 422 return &m_canvas->getDevice()->accessBitmap(false); |
418 } | 423 } |
419 | 424 |
420 bool PlatformContextSkia::IsPrinting() | 425 bool PlatformContextSkia::IsPrinting() |
421 { | 426 { |
422 return m_canvas->getTopPlatformDevice().IsVectorial(); | 427 return m_canvas->getTopPlatformDevice().IsVectorial(); |
423 } | 428 } |
OLD | NEW |