GPU workaround to simulate Out of Memory errors with large textures
[chromium-blink-merge.git] / cc / blink / web_compositor_support_impl.h
blob4b416912c935ae581691abff93e1048f2c96d347
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
6 #define CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_
8 #include "base/memory/ref_counted.h"
9 #include "base/message_loop/message_loop_proxy.h"
10 #include "cc/blink/cc_blink_export.h"
11 #include "third_party/WebKit/public/platform/WebCompositorAnimationCurve.h"
12 #include "third_party/WebKit/public/platform/WebCompositorSupport.h"
13 #include "third_party/WebKit/public/platform/WebContentLayerClient.h"
14 #include "third_party/WebKit/public/platform/WebLayer.h"
15 #include "third_party/WebKit/public/platform/WebTransformOperations.h"
17 namespace blink {
18 class WebGraphicsContext3D;
21 namespace cc_blink {
23 class CC_BLINK_EXPORT WebCompositorSupportImpl
24 : public NON_EXPORTED_BASE(blink::WebCompositorSupport) {
25 public:
26 WebCompositorSupportImpl();
27 virtual ~WebCompositorSupportImpl();
29 virtual blink::WebLayer* createLayer();
30 virtual blink::WebContentLayer* createContentLayer(
31 blink::WebContentLayerClient* client);
32 virtual blink::WebExternalTextureLayer* createExternalTextureLayer(
33 blink::WebExternalTextureLayerClient* client);
34 virtual blink::WebImageLayer* createImageLayer();
35 virtual blink::WebNinePatchLayer* createNinePatchLayer();
36 virtual blink::WebScrollbarLayer* createScrollbarLayer(
37 blink::WebScrollbar* scrollbar,
38 blink::WebScrollbarThemePainter painter,
39 blink::WebScrollbarThemeGeometry*);
40 virtual blink::WebScrollbarLayer* createSolidColorScrollbarLayer(
41 blink::WebScrollbar::Orientation orientation,
42 int thumb_thickness,
43 int track_start,
44 bool is_left_side_vertical_scrollbar);
45 virtual blink::WebDisplayItemList* createDisplayItemList();
46 virtual blink::WebCompositorAnimation* createAnimation(
47 const blink::WebCompositorAnimationCurve& curve,
48 blink::WebCompositorAnimation::TargetProperty target,
49 #ifdef WEB_COMPOSITOR_SUPPORT_CREATE_ANIMATION_SUPPORTS_GROUP
50 int group_id,
51 #endif
52 int animation_id);
53 virtual blink::WebFilterAnimationCurve* createFilterAnimationCurve();
54 virtual blink::WebFloatAnimationCurve* createFloatAnimationCurve();
55 virtual blink::WebScrollOffsetAnimationCurve*
56 createScrollOffsetAnimationCurve(
57 blink::WebFloatPoint target_value,
58 blink::WebCompositorAnimationCurve::TimingFunctionType
59 timing_function);
60 virtual blink::WebTransformAnimationCurve* createTransformAnimationCurve();
61 virtual blink::WebTransformOperations* createTransformOperations();
62 virtual blink::WebFilterOperations* createFilterOperations();
64 private:
65 DISALLOW_COPY_AND_ASSIGN(WebCompositorSupportImpl);
68 } // namespace cc_blink
70 #endif // CC_BLINK_WEB_COMPOSITOR_SUPPORT_IMPL_H_