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

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

Issue 204093002: GraphicsContext culling support. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Flag disabled by default. Created 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 enum DocumentMarkerLineStyle { 298 enum DocumentMarkerLineStyle {
299 DocumentMarkerSpellingLineStyle, 299 DocumentMarkerSpellingLineStyle,
300 DocumentMarkerGrammarLineStyle 300 DocumentMarkerGrammarLineStyle
301 }; 301 };
302 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle); 302 void drawLineForDocumentMarker(const FloatPoint&, float width, DocumentMarke rLineStyle);
303 303
304 void beginTransparencyLayer(float opacity, const FloatRect* = 0); 304 void beginTransparencyLayer(float opacity, const FloatRect* = 0);
305 void beginLayer(float opacity, CompositeOperator, const FloatRect* = 0, Colo rFilter = ColorFilterNone, ImageFilter* = 0); 305 void beginLayer(float opacity, CompositeOperator, const FloatRect* = 0, Colo rFilter = ColorFilterNone, ImageFilter* = 0);
306 void endLayer(); 306 void endLayer();
307 307
308 void beginCull(const FloatRect&);
309 void endCull();
310
308 // Instead of being dispatched to the active canvas, draw commands following beginRecording() 311 // Instead of being dispatched to the active canvas, draw commands following beginRecording()
309 // are stored in a display list that can be replayed at a later time. 312 // are stored in a display list that can be replayed at a later time.
310 void beginRecording(const FloatRect& bounds); 313 void beginRecording(const FloatRect& bounds);
311 PassRefPtr<DisplayList> endRecording(); 314 PassRefPtr<DisplayList> endRecording();
312 315
313 bool hasShadow() const; 316 bool hasShadow() const;
314 void setShadow(const FloatSize& offset, float blur, const Color&, 317 void setShadow(const FloatSize& offset, float blur, const Color&,
315 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms, 318 DrawLooperBuilder::ShadowTransformMode = DrawLooperBuilder::ShadowRespec tsTransforms,
316 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha); 319 DrawLooperBuilder::ShadowAlphaMode = DrawLooperBuilder::ShadowRespectsAl pha);
317 void clearShadow() { clearDrawLooper(); } 320 void clearShadow() { clearDrawLooper(); }
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 // FIXME: Make this go away: crbug.com/236892 504 // FIXME: Make this go away: crbug.com/236892
502 bool m_updatingControlTints : 1; 505 bool m_updatingControlTints : 1;
503 bool m_accelerated : 1; 506 bool m_accelerated : 1;
504 bool m_isCertainlyOpaque : 1; 507 bool m_isCertainlyOpaque : 1;
505 bool m_printing : 1; 508 bool m_printing : 1;
506 }; 509 };
507 510
508 } // namespace WebCore 511 } // namespace WebCore
509 512
510 #endif // GraphicsContext_h 513 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/platform/blink_platform.gypi ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698