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

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

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: test update Created 4 years, 2 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 // 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_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
6 #define CC_BLIMP_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "cc/base/cc_export.h"
10
11 namespace gfx {
12 class ScrollOffset;
13 } // namespace gfx
14
15 namespace cc {
16
17 class CC_EXPORT CompositorStateDeserializerClient {
18 public:
19 virtual ~CompositorStateDeserializerClient() {}
20
21 // Returns true if the given scroll offset update received from the engine
22 // should be ignored.
23 virtual bool ShouldRetainClientScroll(
24 int engine_layer_id,
25 const gfx::ScrollOffset& new_offset) = 0;
26
27 // Returns true if the given page scale update from the engine should be
28 // ignored.
29 virtual bool ShouldRetainClientPageScale(float new_page_scale) = 0;
30 };
31
32 } // namespace cc
33
34 #endif // CC_BLIMP_COMPOSITOR_STATE_DESERIALIZER_CLIENT_H_
OLDNEW
« no previous file with comments | « cc/blimp/compositor_state_deserializer.cc ('k') | cc/blimp/compositor_state_deserializer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698