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

Unified Diff: cc/test/layer_tree_host_remote_for_testing.h

Issue 2445093002: cc/blimp: Add synchronization for scroll/scale state. (Closed)
Patch Set: test compile 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/proto/compositor_message.proto ('k') | cc/test/layer_tree_host_remote_for_testing.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/layer_tree_host_remote_for_testing.h
diff --git a/cc/test/layer_tree_host_remote_for_testing.h b/cc/test/layer_tree_host_remote_for_testing.h
index d2efbf91fe0697a95eb8d97d81a58820ce4dd679..1d786861b875c8153df330d049c0f409a09af65d 100644
--- a/cc/test/layer_tree_host_remote_for_testing.h
+++ b/cc/test/layer_tree_host_remote_for_testing.h
@@ -6,16 +6,14 @@
#define CC_TEST_LAYER_TREE_HOST_REMOTE_FOR_TESTING_H_
#include "base/macros.h"
-#include "cc/blimp/compositor_state_deserializer_client.h"
+#include "cc/blimp/compositor_state_deserializer.h"
#include "cc/blimp/layer_tree_host_remote.h"
-#include "ui/gfx/geometry/scroll_offset.h"
namespace gpu {
class GpuMemoryBufferManager;
} // namespace gpu
namespace cc {
-class CompositorStateDeserializer;
class FakeImageSerializationProcessor;
class LayerTreeHostInProcess;
class SharedBitmapManager;
@@ -75,15 +73,12 @@ class LayerTreeHostRemoteForTesting : public LayerTreeHostRemote,
class RemoteCompositorBridgeImpl;
// CompositorStateDeserializerClient implementation.
- bool ShouldRetainClientScroll(int engine_layer_id,
- const gfx::ScrollOffset& new_offset) override;
- bool ShouldRetainClientPageScale(float new_page_scale) override;
+ void DidUpdateLocalState() override;
// LayerTreeHostRemote interface.
void DispatchDrawAndSubmitCallbacks() override;
- void LayerDidScroll(int engine_layer_id);
- void ApplyUpdatesFromInProcessHost();
+ void BeginRemoteMainFrame();
void RemoteHostNeedsMainFrame();
void ProcessRemoteCompositorUpdate(
@@ -92,7 +87,7 @@ class LayerTreeHostRemoteForTesting : public LayerTreeHostRemote,
std::unique_ptr<LayerTreeHostInProcess> layer_tree_host_in_process_;
std::unique_ptr<CompositorStateDeserializer> compositor_state_deserializer_;
- ScrollOffsetMap layers_scrolled_;
+ bool client_state_dirty_ = false;
std::unique_ptr<LayerTreeHostInProcessClient>
layer_tree_host_in_process_client_;
« no previous file with comments | « cc/proto/compositor_message.proto ('k') | cc/test/layer_tree_host_remote_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698