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

Side by Side Diff: cc/test/remote_client_layer_factory.h

Issue 2451913002: Add serialization/deserialization for FakePictureLayer for testing. (Closed)
Patch Set: Revert change from another CL, that I cl patch this one to that one. Created 4 years, 1 month 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/test/fake_picture_layer.cc ('k') | cc/test/remote_client_layer_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_ 5 #ifndef CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
6 #define CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_ 6 #define CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "cc/blimp/layer_factory.h" 9 #include "cc/blimp/layer_factory.h"
10 10
11 namespace cc { 11 namespace cc {
12 12
13 // An implementation of LayerFactory for tests that ensures that the layer id 13 // An implementation of LayerFactory for tests that ensures that the layer id
14 // for layers created on the client matches the ids of the corresponding layers 14 // for layers created on the client matches the ids of the corresponding layers
15 // on the engine. 15 // on the engine.
16 class RemoteClientLayerFactory : public LayerFactory { 16 class RemoteClientLayerFactory : public LayerFactory {
17 public: 17 public:
18 RemoteClientLayerFactory(); 18 RemoteClientLayerFactory();
19 ~RemoteClientLayerFactory() override; 19 ~RemoteClientLayerFactory() override;
20 20
21 // LayerFactory implementation. 21 // LayerFactory implementation.
22 scoped_refptr<Layer> CreateLayer(int engine_layer_id) override; 22 scoped_refptr<Layer> CreateLayer(int engine_layer_id) override;
23 scoped_refptr<PictureLayer> CreatePictureLayer( 23 scoped_refptr<PictureLayer> CreatePictureLayer(
24 int engine_layer_id, 24 int engine_layer_id,
25 ContentLayerClient* content_layer_client) override; 25 ContentLayerClient* content_layer_client) override;
26 scoped_refptr<PictureLayer> CreateFakePictureLayer(
27 int engine_layer_id,
28 ContentLayerClient* content_layer_client) override;
26 scoped_refptr<SolidColorScrollbarLayer> CreateSolidColorScrollbarLayer( 29 scoped_refptr<SolidColorScrollbarLayer> CreateSolidColorScrollbarLayer(
27 int engine_layer_id, 30 int engine_layer_id,
28 ScrollbarOrientation orientation, 31 ScrollbarOrientation orientation,
29 int thumb_thickness, 32 int thumb_thickness,
30 int track_start, 33 int track_start,
31 bool is_left_side_vertical_scrollbar, 34 bool is_left_side_vertical_scrollbar,
32 int scroll_layer_id) override; 35 int scroll_layer_id) override;
33 }; 36 };
34 37
35 } // namespace cc 38 } // namespace cc
36 39
37 #endif // CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_ 40 #endif // CC_TEST_REMOTE_CLIENT_LAYER_FACTORY_H_
OLDNEW
« no previous file with comments | « cc/test/fake_picture_layer.cc ('k') | cc/test/remote_client_layer_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698