mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
These were only used for doing effects in Clank and the shadows around the page when bouncing on the Mac. Now they're dead code. In the future if we decide nine patch is an API we really want we should expose web platform primitives instead of having a special API on layer. R=ojan@chromium.org, abarth@chromium.org Review URL: https://codereview.chromium.org/685983002
65 lines
2.5 KiB
C++
65 lines
2.5 KiB
C++
// Copyright 2014 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.
|
|
|
|
#ifndef SKY_VIEWER_CC_WEB_COMPOSITOR_SUPPORT_IMPL_H_
|
|
#define SKY_VIEWER_CC_WEB_COMPOSITOR_SUPPORT_IMPL_H_
|
|
|
|
#include "base/memory/ref_counted.h"
|
|
#include "base/message_loop/message_loop_proxy.h"
|
|
#include "sky/viewer/cc/sky_viewer_cc_export.h"
|
|
#include "sky/engine/public/platform/WebCompositorAnimationCurve.h"
|
|
#include "sky/engine/public/platform/WebCompositorSupport.h"
|
|
#include "sky/engine/public/platform/WebLayer.h"
|
|
#include "sky/engine/public/platform/WebTransformOperations.h"
|
|
|
|
namespace blink {
|
|
class WebGraphicsContext3D;
|
|
}
|
|
|
|
namespace sky_viewer_cc {
|
|
|
|
class SKY_VIEWER_CC_EXPORT WebCompositorSupportImpl
|
|
: public NON_EXPORTED_BASE(blink::WebCompositorSupport) {
|
|
public:
|
|
WebCompositorSupportImpl();
|
|
virtual ~WebCompositorSupportImpl();
|
|
|
|
virtual blink::WebLayer* createLayer();
|
|
virtual blink::WebContentLayer* createContentLayer(
|
|
blink::WebContentLayerClient* client);
|
|
virtual blink::WebExternalTextureLayer* createExternalTextureLayer(
|
|
blink::WebExternalTextureLayerClient* client);
|
|
virtual blink::WebImageLayer* createImageLayer();
|
|
virtual blink::WebScrollbarLayer* createScrollbarLayer(
|
|
blink::WebScrollbar* scrollbar,
|
|
blink::WebScrollbarThemePainter painter,
|
|
blink::WebScrollbarThemeGeometry*);
|
|
virtual blink::WebScrollbarLayer* createSolidColorScrollbarLayer(
|
|
blink::WebScrollbar::Orientation orientation,
|
|
int thumb_thickness,
|
|
int track_start,
|
|
bool is_left_side_vertical_scrollbar);
|
|
virtual blink::WebCompositorAnimation* createAnimation(
|
|
const blink::WebCompositorAnimationCurve& curve,
|
|
blink::WebCompositorAnimation::TargetProperty target,
|
|
int animation_id);
|
|
virtual blink::WebFilterAnimationCurve* createFilterAnimationCurve();
|
|
virtual blink::WebFloatAnimationCurve* createFloatAnimationCurve();
|
|
virtual blink::WebScrollOffsetAnimationCurve*
|
|
createScrollOffsetAnimationCurve(
|
|
blink::WebFloatPoint target_value,
|
|
blink::WebCompositorAnimationCurve::TimingFunctionType
|
|
timing_function);
|
|
virtual blink::WebTransformAnimationCurve* createTransformAnimationCurve();
|
|
virtual blink::WebTransformOperations* createTransformOperations();
|
|
virtual blink::WebFilterOperations* createFilterOperations();
|
|
|
|
private:
|
|
DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
|
|
};
|
|
|
|
} // namespace sky_viewer_cc
|
|
|
|
#endif // SKY_VIEWER_CC_WEB_COMPOSITOR_SUPPORT_IMPL_H_
|