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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/GraphicsContext.h

Issue 1814473003: Revert of Add sk_sp helpers and switch Blink SkShader clients to the new APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2003, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved.
3 * Copyright (C) 2008-2009 Torch Mobile, Inc. 3 * Copyright (C) 2008-2009 Torch Mobile, Inc.
4 * Copyright (C) 2013 Google Inc. All rights reserved. 4 * Copyright (C) 2013 Google Inc. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions 7 * modification, are permitted provided that the following conditions
8 * are met: 8 * are met:
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 // beginLayer()/endLayer() behaves like save()/restore() for CTM and clip st ates. 204 // beginLayer()/endLayer() behaves like save()/restore() for CTM and clip st ates.
205 // Apply SkXfermode::Mode when the layer is composited on the backdrop (i.e. endLayer()). 205 // Apply SkXfermode::Mode when the layer is composited on the backdrop (i.e. endLayer()).
206 void beginLayer(float opacity = 1.0f, SkXfermode::Mode = SkXfermode::kSrcOve r_Mode, 206 void beginLayer(float opacity = 1.0f, SkXfermode::Mode = SkXfermode::kSrcOve r_Mode,
207 const FloatRect* = 0, ColorFilter = ColorFilterNone, SkImageFilter* = 0) ; 207 const FloatRect* = 0, ColorFilter = ColorFilterNone, SkImageFilter* = 0) ;
208 void endLayer(); 208 void endLayer();
209 209
210 // Instead of being dispatched to the active canvas, draw commands following beginRecording() 210 // Instead of being dispatched to the active canvas, draw commands following beginRecording()
211 // are stored in a display list that can be replayed at a later time. Pass i n the bounding 211 // are stored in a display list that can be replayed at a later time. Pass i n the bounding
212 // rectangle for the content in the list. 212 // rectangle for the content in the list.
213 void beginRecording(const FloatRect&); 213 void beginRecording(const FloatRect&);
214 PassRefPtr<SkPicture> endRecording(); 214 PassRefPtr<const SkPicture> endRecording();
215 215
216 void setShadow(const FloatSize& offset, float blur, const Color&, 216 void setShadow(const FloatSize& offset, float blur, const Color&,
217 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms, 217 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms,
218 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha, ShadowMode = DrawShadowAndForeground); 218 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha, ShadowMode = DrawShadowAndForeground);
219 219
220 // It is assumed that this draw looper is used only for shadows 220 // It is assumed that this draw looper is used only for shadows
221 // (i.e. a draw looper is set if and only if there is a shadow). 221 // (i.e. a draw looper is set if and only if there is a shadow).
222 // The builder passed into this method will be destroyed. 222 // The builder passed into this method will be destroyed.
223 void setDrawLooper(PassOwnPtr<DrawLooperBuilder>); 223 void setDrawLooper(PassOwnPtr<DrawLooperBuilder>);
224 void clearDrawLooper(); 224 void clearDrawLooper();
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
371 371
372 float m_deviceScaleFactor; 372 float m_deviceScaleFactor;
373 373
374 unsigned m_printing : 1; 374 unsigned m_printing : 1;
375 unsigned m_hasMetaData : 1; 375 unsigned m_hasMetaData : 1;
376 }; 376 };
377 377
378 } // namespace blink 378 } // namespace blink
379 379
380 #endif // GraphicsContext_h 380 #endif // GraphicsContext_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698