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

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

Issue 766333003: canvas: fix bugs on HTMLCanvasElement::copiedImage() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rephrase this test so that the expectations don't contain failure 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) 2009 Apple Inc. All rights reserved. 2 * Copyright (C) 2009 Apple Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #endif 51 #endif
52 52
53 HTMLCanvasElement* canvas() const { return m_canvas; } 53 HTMLCanvasElement* canvas() const { return m_canvas; }
54 54
55 virtual bool is2d() const { return false; } 55 virtual bool is2d() const { return false; }
56 virtual bool is3d() const { return false; } 56 virtual bool is3d() const { return false; }
57 virtual bool isAccelerated() const { return false; } 57 virtual bool isAccelerated() const { return false; }
58 virtual bool hasAlpha() const { return true; } 58 virtual bool hasAlpha() const { return true; }
59 virtual void setIsHidden(bool) = 0; 59 virtual void setIsHidden(bool) = 0;
60 60
61 virtual void paintRenderingResultsToCanvas(SourceDrawingBuffer) { } 61 // Return true if the content is updated.
62 virtual bool paintRenderingResultsToCanvas(SourceDrawingBuffer) { return fal se; }
62 63
63 virtual blink::WebLayer* platformLayer() const { return nullptr; } 64 virtual blink::WebLayer* platformLayer() const { return nullptr; }
64 65
65 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); } 66 virtual void trace(Visitor* visitor) { visitor->trace(m_canvas); }
66 67
67 bool wouldTaintOrigin(CanvasImageSource*); 68 bool wouldTaintOrigin(CanvasImageSource*);
68 69
69 protected: 70 protected:
70 CanvasRenderingContext(HTMLCanvasElement*); 71 CanvasRenderingContext(HTMLCanvasElement*);
71 72
72 private: 73 private:
73 RawPtrWillBeMember<HTMLCanvasElement> m_canvas; 74 RawPtrWillBeMember<HTMLCanvasElement> m_canvas;
74 HashSet<String> m_cleanURLs; 75 HashSet<String> m_cleanURLs;
75 HashSet<String> m_dirtyURLs; 76 HashSet<String> m_dirtyURLs;
76 }; 77 };
77 78
78 } // namespace blink 79 } // namespace blink
79 80
80 #endif 81 #endif
OLDNEW
« no previous file with comments | « Source/core/html/HTMLCanvasElement.cpp ('k') | Source/core/html/canvas/WebGLRenderingContextBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698