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

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

Issue 2903053002: Removing canvas rendering mode switching feature (Closed)
Patch Set: fix test failure Created 3 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
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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 virtual unsigned HitRegionsCount() const { return 0; } 155 virtual unsigned HitRegionsCount() const { return 0; }
156 virtual void setFont(const String&) {} 156 virtual void setFont(const String&) {}
157 virtual void StyleDidChange(const ComputedStyle* old_style, 157 virtual void StyleDidChange(const ComputedStyle* old_style,
158 const ComputedStyle& new_style) {} 158 const ComputedStyle& new_style) {}
159 virtual HitTestCanvasResult* GetControlAndIdIfHitRegionExists( 159 virtual HitTestCanvasResult* GetControlAndIdIfHitRegionExists(
160 const LayoutPoint& location) { 160 const LayoutPoint& location) {
161 NOTREACHED(); 161 NOTREACHED();
162 return HitTestCanvasResult::Create(String(), nullptr); 162 return HitTestCanvasResult::Create(String(), nullptr);
163 } 163 }
164 virtual String GetIdFromControl(const Element* element) { return String(); } 164 virtual String GetIdFromControl(const Element* element) { return String(); }
165 virtual bool IsAccelerationOptimalForCanvasContent() const { return true; }
166 virtual void ResetUsageTracking(){}; 165 virtual void ResetUsageTracking(){};
167 166
168 // WebGL-specific interface 167 // WebGL-specific interface
169 virtual bool Is3d() const { return false; } 168 virtual bool Is3d() const { return false; }
170 virtual void SetFilterQuality(SkFilterQuality) { NOTREACHED(); } 169 virtual void SetFilterQuality(SkFilterQuality) { NOTREACHED(); }
171 virtual void Reshape(int width, int height) { NOTREACHED(); } 170 virtual void Reshape(int width, int height) { NOTREACHED(); }
172 virtual void MarkLayerComposited() { NOTREACHED(); } 171 virtual void MarkLayerComposited() { NOTREACHED(); }
173 virtual ImageData* PaintRenderingResultsToImageData(SourceDrawingBuffer) { 172 virtual ImageData* PaintRenderingResultsToImageData(SourceDrawingBuffer) {
174 NOTREACHED(); 173 NOTREACHED();
175 return nullptr; 174 return nullptr;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 HashSet<String> clean_urls_; 206 HashSet<String> clean_urls_;
208 HashSet<String> dirty_urls_; 207 HashSet<String> dirty_urls_;
209 CanvasColorParams color_params_; 208 CanvasColorParams color_params_;
210 CanvasContextCreationAttributes creation_attributes_; 209 CanvasContextCreationAttributes creation_attributes_;
211 bool finalize_frame_scheduled_ = false; 210 bool finalize_frame_scheduled_ = false;
212 }; 211 };
213 212
214 } // namespace blink 213 } // namespace blink
215 214
216 #endif 215 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | third_party/WebKit/Source/modules/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698