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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp

Issue 2588123002: Fix ODR violation in Blink (Closed)
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
index 84cbb6f88c12ecce14389118160bc4237ab980d2..e7caecf5debcdb0b36cf7cff071c619f796ed92b 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageBuffer.cpp
@@ -495,6 +495,8 @@ void ImageBuffer::updateGPUMemoryUsage() const {
}
}
+namespace {
+
class UnacceleratedSurfaceFactory
: public RecordingImageBufferFallbackSurfaceFactory {
public:
@@ -511,6 +513,8 @@ class UnacceleratedSurfaceFactory
virtual ~UnacceleratedSurfaceFactory() {}
};
+} // namespace
+
void ImageBuffer::disableAcceleration() {
if (!isAccelerated())
return;
« no previous file with comments | « third_party/WebKit/Source/core/html/HTMLCanvasElement.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698