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

Side by Side Diff: cc/blimp/layer_factory.h

Issue 2646623002: cc: Remove all blimp code from cc. (Closed)
Patch Set: test build Created 3 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
« no previous file with comments | « cc/blimp/image_serialization_processor.h ('k') | cc/blimp/layer_tree_host_remote.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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.
4
5 #ifndef CC_BLIMP_LAYER_FACTORY_H_
6 #define CC_BLIMP_LAYER_FACTORY_H_
7
8 #include "base/macros.h"
9 #include "base/memory/ref_counted.h"
10 #include "cc/input/scrollbar.h"
11
12 namespace cc {
13 class ContentLayerClient;
14 class Layer;
15 class PictureLayer;
16 class SolidColorScrollbarLayer;
17
18 // Used to allow tests to inject the Layer created by the
19 // CompositorStateDeserializer on the client.
20 class LayerFactory {
21 public:
22 virtual ~LayerFactory() {}
23
24 virtual scoped_refptr<Layer> CreateLayer(int engine_layer_id) = 0;
25
26 virtual scoped_refptr<PictureLayer> CreatePictureLayer(
27 int engine_layer_id,
28 ContentLayerClient* content_layer_client) = 0;
29
30 virtual scoped_refptr<SolidColorScrollbarLayer>
31 CreateSolidColorScrollbarLayer(int engine_layer_id,
32 ScrollbarOrientation orientation,
33 int thumb_thickness,
34 int track_start,
35 bool is_left_side_vertical_scrollbar,
36 int scroll_layer_id) = 0;
37
38 // Create layers for testing.
39 virtual scoped_refptr<PictureLayer> CreateFakePictureLayer(
40 int engine_layer_id,
41 ContentLayerClient* content_layer_client) = 0;
42
43 virtual scoped_refptr<Layer> CreatePushPropertiesCountingLayer(
44 int engine_layer_id) = 0;
45 };
46
47 } // namespace cc
48
49 #endif // CC_BLIMP_LAYER_FACTORY_H_
OLDNEW
« no previous file with comments | « cc/blimp/image_serialization_processor.h ('k') | cc/blimp/layer_tree_host_remote.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698