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

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

Issue 297293004: Adding cache for security origin validations in 2D/WebGL canvases (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: reorganized code Created 6 years, 6 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
« no previous file with comments | « Source/core/html/HTMLVideoElement.h ('k') | Source/core/html/canvas/CanvasRenderingContext.h » ('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) 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual bool wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigin) con st = 0; 59 virtual bool wouldTaintOrigin(SecurityOrigin* destinationSecurityOrigin) con st = 0;
60 60
61 virtual bool isVideoElement() const { return false; } 61 virtual bool isVideoElement() const { return false; }
62 62
63 // Adjusts the source and destination rectangles for cases where the actual 63 // Adjusts the source and destination rectangles for cases where the actual
64 // source image is a subregion of the image returned by getSourceImageForCan vas. 64 // source image is a subregion of the image returned by getSourceImageForCan vas.
65 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { } 65 virtual void adjustDrawRects(FloatRect* srcRect, FloatRect* dstRect) const { }
66 66
67 virtual FloatSize sourceSize() const = 0; 67 virtual FloatSize sourceSize() const = 0;
68 virtual FloatSize defaultDestinationSize() const { return sourceSize(); } 68 virtual FloatSize defaultDestinationSize() const { return sourceSize(); }
69 virtual const KURL& sourceURL() const { return blankURL(); }
69 70
70 protected: 71 protected:
71 virtual ~CanvasImageSource() { } 72 virtual ~CanvasImageSource() { }
72 }; 73 };
73 74
74 } // namespace WebCore 75 } // namespace WebCore
75 76
76 #endif 77 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLVideoElement.h ('k') | Source/core/html/canvas/CanvasRenderingContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698