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

Side by Side Diff: webkit/port/platform/graphics/skia/PlatformContextSkia.cpp

Issue 8615: Add support for transformed, stoked, shadowed, filled text. We do this by... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698