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

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

Issue 1372463002: Re-land: Make 2D canvas smarter about chosing whether or not to use GPU acceleration (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed assert Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
diff --git a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
index 17b390be54acdfe4e881adf093ed659f6b80bb14..b03965bcde38fe0c5457d9bbcc7915b986285f7b 100644
--- a/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
+++ b/third_party/WebKit/Source/core/html/canvas/CanvasImageSource.h
@@ -28,6 +28,7 @@
#define CanvasImageSource_h
#include "core/CoreExport.h"
+#include "platform/graphics/GraphicsTypes.h"
#include "wtf/PassRefPtr.h"
namespace blink {
@@ -45,7 +46,7 @@ enum SourceImageStatus {
class CORE_EXPORT CanvasImageSource {
public:
- virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus* = 0) const = 0;
+ virtual PassRefPtr<Image> getSourceImageForCanvas(SourceImageStatus*, AccelerationHint) const = 0;
// IMPORTANT: Result must be independent of whether destinationContext is
// already tainted because this function may be used to determine whether

Powered by Google App Engine
This is Rietveld 408576698