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

Unified Diff: sky/engine/platform/graphics/gpu/DrawingBuffer.cpp

Issue 874633003: Remove WebCompositorSupport (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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
« no previous file with comments | « sky/engine/platform/graphics/filters/SkiaImageFilterBuilder.cpp ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/platform/graphics/gpu/DrawingBuffer.cpp
diff --git a/sky/engine/platform/graphics/gpu/DrawingBuffer.cpp b/sky/engine/platform/graphics/gpu/DrawingBuffer.cpp
index dd5d8d461358dc0584b12aaf1fb167d8f6da8d9c..877e3c742d983020a9ebe5a38e5728e994665364 100644
--- a/sky/engine/platform/graphics/gpu/DrawingBuffer.cpp
+++ b/sky/engine/platform/graphics/gpu/DrawingBuffer.cpp
@@ -38,7 +38,6 @@
#include "sky/engine/platform/graphics/ImageBuffer.h"
#include "sky/engine/platform/graphics/gpu/Extensions3DUtil.h"
#include "sky/engine/public/platform/Platform.h"
-#include "sky/engine/public/platform/WebCompositorSupport.h"
#include "sky/engine/public/platform/WebExternalBitmap.h"
#include "sky/engine/public/platform/WebExternalTextureLayer.h"
#include "sky/engine/public/platform/WebGraphicsContext3D.h"
@@ -505,7 +504,8 @@ Platform3DObject DrawingBuffer::framebuffer() const
WebLayer* DrawingBuffer::platformLayer()
{
if (!m_layer) {
- m_layer = adoptPtr(Platform::current()->compositorSupport()->createExternalTextureLayer(this));
+ m_layer = nullptr;
+ CRASH(); // No compositor.
m_layer->setOpaque(!m_actualAttributes.alpha);
m_layer->setBlendBackgroundColor(m_actualAttributes.alpha);
« no previous file with comments | « sky/engine/platform/graphics/filters/SkiaImageFilterBuilder.cpp ('k') | sky/engine/public/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698