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

Side by Side Diff: sky/engine/platform/graphics/GraphicsContext.h

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 enum DocumentMarkerLineStyle { 318 enum DocumentMarkerLineStyle {
319 DocumentMarkerSpellingLineStyle, 319 DocumentMarkerSpellingLineStyle,
320 DocumentMarkerGrammarLineStyle 320 DocumentMarkerGrammarLineStyle
321 }; 321 };
322 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle); 322 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle);
323 323
324 void beginTransparencyLayer(float opacity, const FloatRect* = 0); 324 void beginTransparencyLayer(float opacity, const FloatRect* = 0);
325 void beginLayer(float opacity, CompositeOperator, const FloatRect* = 0, Colo rFilter = ColorFilterNone, ImageFilter* = 0); 325 void beginLayer(float opacity, CompositeOperator, const FloatRect* = 0, Colo rFilter = ColorFilterNone, ImageFilter* = 0);
326 void endLayer(); 326 void endLayer();
327 327
328 void beginCull(const FloatRect&);
329 void endCull();
330
331 // Instead of being dispatched to the active canvas, draw commands following beginRecording() 328 // Instead of being dispatched to the active canvas, draw commands following beginRecording()
332 // are stored in a display list that can be replayed at a later time. 329 // are stored in a display list that can be replayed at a later time.
333 void beginRecording(const FloatRect& bounds); 330 void beginRecording(const FloatRect& bounds);
334 PassRefPtr<DisplayList> endRecording(); 331 PassRefPtr<DisplayList> endRecording();
335 332
336 bool hasShadow() const; 333 bool hasShadow() const;
337 void setShadow(const FloatSize& offset, float blur, const Color&, 334 void setShadow(const FloatSize& offset, float blur, const Color&,
338 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms, 335 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms,
339 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha); 336 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha);
340 void clearShadow() { clearDrawLooper(); } 337 void clearShadow() { clearDrawLooper(); }
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 522
526 bool m_accelerated : 1; 523 bool m_accelerated : 1;
527 bool m_isCertainlyOpaque : 1; 524 bool m_isCertainlyOpaque : 1;
528 bool m_antialiasHairlineImages : 1; 525 bool m_antialiasHairlineImages : 1;
529 bool m_shouldSmoothFonts : 1; 526 bool m_shouldSmoothFonts : 1;
530 }; 527 };
531 528
532 } // namespace blink 529 } // namespace blink
533 530
534 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXT_H_ 531 #endif // SKY_ENGINE_PLATFORM_GRAPHICS_GRAPHICSCONTEXT_H_
OLDNEW
« no previous file with comments | « sky/engine/core/rendering/RenderBlock.cpp ('k') | sky/engine/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698