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

Side by Side Diff: sky/engine/public/platform/WebCompositorSupport.h

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 unified diff | Download patch
OLDNEW
(Empty)
1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 *
4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions
6 * are met:
7 *
8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright
11 * notice, this list of conditions and the following disclaimer in the
12 * documentation and/or other materials provided with the distribution.
13 *
14 * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
15 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
18 * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */
25
26 #ifndef SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORSUPPORT_H_
27 #define SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORSUPPORT_H_
28
29 #include "sky/engine/public/platform/WebCommon.h"
30 #include "sky/engine/public/platform/WebCompositorAnimation.h"
31 #include "sky/engine/public/platform/WebCompositorAnimationCurve.h"
32 #include "sky/engine/public/platform/WebFloatPoint.h"
33 #include "sky/engine/public/platform/WebLayerTreeView.h"
34
35 namespace blink {
36
37 class WebCompositorAnimationCurve;
38 class WebCompositorOutputSurface;
39 class WebContentLayer;
40 class WebContentLayerClient;
41 class WebExternalTextureLayer;
42 class WebExternalTextureLayerClient;
43 class WebFilterAnimationCurve;
44 class WebFilterOperations;
45 class WebFloatAnimationCurve;
46 class WebGraphicsContext3D;
47 class WebImageLayer;
48 class WebLayer;
49 class WebTransformAnimationCurve;
50 class WebTransformOperations;
51
52 class WebCompositorSupport {
53 public:
54 // Creates an output surface for the compositor backed by a 3d context.
55 virtual WebCompositorOutputSurface* createOutputSurfaceFor3D(WebGraphicsCont ext3D*) { return 0; }
56
57 // Creates an output surface for the compositor backed by a software device.
58 virtual WebCompositorOutputSurface* createOutputSurfaceForSoftware() { retur n 0; }
59
60 // Layers -------------------------------------------------------
61
62 virtual WebLayer* createLayer() { return 0; }
63
64 virtual WebContentLayer* createContentLayer(WebContentLayerClient*) { return 0; }
65
66 virtual WebExternalTextureLayer* createExternalTextureLayer(WebExternalTextu reLayerClient*) { return 0; }
67
68 virtual WebImageLayer* createImageLayer() { return 0; }
69
70 // Animation ----------------------------------------------------
71
72 virtual WebCompositorAnimation* createAnimation(const WebCompositorAnimation Curve&, WebCompositorAnimation::TargetProperty, int animationId = 0) { return 0; }
73
74 virtual WebFilterAnimationCurve* createFilterAnimationCurve() { return 0; }
75
76 virtual WebFloatAnimationCurve* createFloatAnimationCurve() { return 0; }
77
78 virtual WebTransformAnimationCurve* createTransformAnimationCurve() { return 0; }
79
80 virtual WebTransformOperations* createTransformOperations() { return 0; }
81
82 virtual WebFilterOperations* createFilterOperations() { return 0; }
83
84 protected:
85 virtual ~WebCompositorSupport() { }
86 };
87
88 }
89
90 #endif // SKY_ENGINE_PUBLIC_PLATFORM_WEBCOMPOSITORSUPPORT_H_
OLDNEW
« no previous file with comments | « sky/engine/public/platform/WebCompositorOutputSurface.h ('k') | sky/engine/public/platform/WebFilterAnimationCurve.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698