| Index: third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b13d9ad7c36c2260ff386af7f2fdae63c4b4564e
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/platform/graphics/CanvasSurfaceLayerBridge.cpp
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#include "platform/graphics/CanvasSurfaceLayerBridge.h"
|
| +
|
| +#include "cc/layers/solid_color_layer.h"
|
| +#include "platform/graphics/GraphicsLayer.h"
|
| +#include "public/platform/Platform.h"
|
| +#include "public/platform/WebCompositorSupport.h"
|
| +#include "public/platform/WebLayer.h"
|
| +
|
| +namespace blink {
|
| +
|
| +CanvasSurfaceLayerBridge::CanvasSurfaceLayerBridge()
|
| +{
|
| + m_solidColorLayer = cc::SolidColorLayer::Create();
|
| + m_solidColorLayer->SetBackgroundColor(SK_ColorBLUE);
|
| + m_webLayer = adoptPtr(Platform::current()->compositorSupport()->createLayerFromCCLayer(m_solidColorLayer.get()));
|
| + GraphicsLayer::registerContentsLayer(m_webLayer.get());
|
| +}
|
| +
|
| +CanvasSurfaceLayerBridge::~CanvasSurfaceLayerBridge()
|
| +{
|
| +}
|
| +
|
| +}
|
|
|