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

Unified Diff: third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp

Issue 2589143003: Add 'get' prefix for Settings.in generated code. (Closed)
Patch Set: Only get prefix and no capitalization. Created 3 years, 11 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/HTMLCanvasElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
index 2bf68aa49274532e3c2b8c46b49beb36193c3372..b0f92dbd71f8906be13a81d75d3a2bb25e3b4cf7 100644
--- a/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp
@@ -786,7 +786,7 @@ SecurityOrigin* HTMLCanvasElement::getSecurityOrigin() const {
bool HTMLCanvasElement::originClean() const {
if (document().settings() &&
- document().settings()->disableReadingFromCanvas())
+ document().settings()->getDisableReadingFromCanvas())
return false;
if (placeholderFrame())
return placeholderFrame()->originClean();
@@ -834,7 +834,7 @@ bool HTMLCanvasElement::shouldAccelerate(const IntSize& size) const {
// Do not use acceleration for small canvas.
Settings* settings = document().settings();
if (!settings ||
- canvasPixelCount < settings->minimumAccelerated2dCanvasSize())
+ canvasPixelCount < settings->getMinimumAccelerated2dCanvasSize())
return false;
// When GPU allocated memory runs low (due to having created too many
@@ -909,9 +909,10 @@ HTMLCanvasElement::createAcceleratedImageBufferSurface(
if (!shouldAccelerate(deviceSize))
return nullptr;
- if (document().settings())
+ if (document().settings()) {
*msaaSampleCount =
- document().settings()->accelerated2dCanvasMSAASampleCount();
+ document().settings()->getAccelerated2dCanvasMSAASampleCount();
+ }
// Avoid creating |contextProvider| until we're sure we want to try use it,
// since it costs us GPU memory.
@@ -1029,7 +1030,7 @@ void HTMLCanvasElement::createImageBufferInternal(
// consistency, we don't want to apply AA in accelerated canvases but not in
// unaccelerated canvases.
if (!msaaSampleCount && document().settings() &&
- !document().settings()->antialiased2dCanvasEnabled())
+ !document().settings()->getAntialiased2dCanvasEnabled())
m_context->setShouldAntialias(false);
if (m_context)
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLAnchorElement.cpp ('k') | third_party/WebKit/Source/core/html/HTMLMediaElement.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698