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

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

Issue 399213002: Change GraphicsContext::createCompatibleBuffer to return something non-null (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rename Created 6 years, 5 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 380 matching lines...) Expand 10 before | Expand all | Expand 10 after
391 // ---------- End transformation methods ----------------- 391 // ---------- End transformation methods -----------------
392 392
393 // URL drawing 393 // URL drawing
394 void setURLForRect(const KURL&, const IntRect&); 394 void setURLForRect(const KURL&, const IntRect&);
395 void setURLFragmentForRect(const String& name, const IntRect&); 395 void setURLFragmentForRect(const String& name, const IntRect&);
396 void addURLTargetAtPoint(const String& name, const IntPoint&); 396 void addURLTargetAtPoint(const String& name, const IntPoint&);
397 bool supportsURLFragments() { return printing(); } 397 bool supportsURLFragments() { return printing(); }
398 398
399 // Create an image buffer compatible with this context, with suitable resolu tion 399 // Create an image buffer compatible with this context, with suitable resolu tion
400 // for drawing into the buffer and then into this context. 400 // for drawing into the buffer and then into this context.
401 PassOwnPtr<ImageBuffer> createCompatibleBuffer(const IntSize&, OpacityMode = NonOpaque) const; 401 PassOwnPtr<ImageBuffer> createRasterBuffer(const IntSize&, OpacityMode = Non Opaque) const;
402 402
403 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa t strokeWidth, StrokeStyle); 403 static void adjustLineToPixelBoundaries(FloatPoint& p1, FloatPoint& p2, floa t strokeWidth, StrokeStyle);
404 404
405 void beginAnnotation(const AnnotationList&); 405 void beginAnnotation(const AnnotationList&);
406 void endAnnotation(); 406 void endAnnotation();
407 407
408 private: 408 private:
409 const GraphicsContextState* immutableState() const { return m_paintState; } 409 const GraphicsContextState* immutableState() const { return m_paintState; }
410 410
411 GraphicsContextState* mutableState() 411 GraphicsContextState* mutableState()
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
523 bool m_updatingControlTints : 1; 523 bool m_updatingControlTints : 1;
524 bool m_accelerated : 1; 524 bool m_accelerated : 1;
525 bool m_isCertainlyOpaque : 1; 525 bool m_isCertainlyOpaque : 1;
526 bool m_printing : 1; 526 bool m_printing : 1;
527 bool m_antialiasHairlineImages : 1; 527 bool m_antialiasHairlineImages : 1;
528 }; 528 };
529 529
530 } // namespace WebCore 530 } // namespace WebCore
531 531
532 #endif // GraphicsContext_h 532 #endif // GraphicsContext_h
OLDNEW
« no previous file with comments | « Source/platform/graphics/CrossfadeGeneratedImage.cpp ('k') | Source/platform/graphics/GraphicsContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698