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

Side by Side Diff: third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h

Issue 2680933005: Make static KURLs thread safe
Patch Set: :/ Created 3 years, 10 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) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2007, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007 Alp Toker <alp@atoker.com> 3 * Copyright (C) 2007 Alp Toker <alp@atoker.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 // Adjusts the source and destination rectangles for cases where the actual 71 // Adjusts the source and destination rectangles for cases where the actual
72 // source image is a subregion of the image returned by 72 // source image is a subregion of the image returned by
73 // getSourceImageForCanvas. 73 // getSourceImageForCanvas.
74 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const {} 74 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const {}
75 75
76 virtual FloatSize elementSize(const FloatSize& defaultObjectSize) const = 0; 76 virtual FloatSize elementSize(const FloatSize& defaultObjectSize) const = 0;
77 virtual FloatSize defaultDestinationSize( 77 virtual FloatSize defaultDestinationSize(
78 const FloatSize& defaultObjectSize) const { 78 const FloatSize& defaultObjectSize) const {
79 return elementSize(defaultObjectSize); 79 return elementSize(defaultObjectSize);
80 } 80 }
81 virtual const KURL& sourceURL() const { return blankURL(); } 81 virtual KURL sourceURL() const { return KURL(); }
82 virtual bool isOpaque() const { return false; } 82 virtual bool isOpaque() const { return false; }
83 virtual bool isAccelerated() const = 0; 83 virtual bool isAccelerated() const = 0;
84 84
85 virtual int sourceWidth() = 0; 85 virtual int sourceWidth() = 0;
86 virtual int sourceHeight() = 0; 86 virtual int sourceHeight() = 0;
87 87
88 protected: 88 protected:
89 virtual ~CanvasImageSource() {} 89 virtual ~CanvasImageSource() {}
90 }; 90 };
91 91
92 } // namespace blink 92 } // namespace blink
93 93
94 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698