Index: components/html_viewer/web_layer_tree_view_impl.h |
diff --git a/components/html_viewer/web_layer_tree_view_impl.h b/components/html_viewer/web_layer_tree_view_impl.h |
deleted file mode 100644 |
index bcd833ba7a958c6d56ad1fbe7831b6b9fd31e7ce..0000000000000000000000000000000000000000 |
--- a/components/html_viewer/web_layer_tree_view_impl.h |
+++ /dev/null |
@@ -1,126 +0,0 @@ |
-// Copyright 2014 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#ifndef COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
-#define COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |
- |
-#include "base/macros.h" |
-#include "base/memory/ref_counted.h" |
-#include "base/memory/scoped_ptr.h" |
-#include "base/memory/weak_ptr.h" |
-#include "base/single_thread_task_runner.h" |
-#include "cc/trees/layer_tree_host_client.h" |
-#include "components/mus/public/cpp/output_surface.h" |
-#include "components/mus/public/interfaces/gpu.mojom.h" |
-#include "third_party/WebKit/public/platform/WebLayerTreeView.h" |
- |
-namespace base { |
-class SingleThreadTaskRunner; |
-} |
- |
-namespace blink { |
-class WebWidget; |
-} |
- |
-namespace cc { |
-class LayerTreeHost; |
-class TaskGraphRunner; |
-} |
- |
-namespace gpu { |
-class GpuMemoryBufferManager; |
-} |
- |
-namespace html_viewer { |
- |
-class WebLayerTreeViewImpl : public blink::WebLayerTreeView, |
- public cc::LayerTreeHostClient { |
- public: |
- WebLayerTreeViewImpl( |
- scoped_refptr<base::SingleThreadTaskRunner> compositor_task_runner, |
- gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
- cc::TaskGraphRunner* task_graph_runner); |
- ~WebLayerTreeViewImpl() override; |
- |
- void Initialize(mus::mojom::GpuPtr gpu_service, |
- mus::Window* window, |
- blink::WebWidget* widget); |
- |
- // cc::LayerTreeHostClient implementation. |
- void WillBeginMainFrame() override; |
- void DidBeginMainFrame() override; |
- void BeginMainFrame(const cc::BeginFrameArgs& args) override; |
- void BeginMainFrameNotExpectedSoon() override; |
- void UpdateLayerTreeHost() override; |
- void ApplyViewportDeltas(const gfx::Vector2dF& inner_delta, |
- const gfx::Vector2dF& outer_delta, |
- const gfx::Vector2dF& elastic_overscroll_delta, |
- float page_scale, |
- float top_controls_delta) override; |
- void RequestNewOutputSurface() override; |
- void DidFailToInitializeOutputSurface() override; |
- void DidInitializeOutputSurface() override; |
- void WillCommit() override; |
- void DidCommit() override; |
- void DidCommitAndDrawFrame() override; |
- void DidCompleteSwapBuffers() override; |
- void DidCompletePageScaleAnimation() override {} |
- void RecordFrameTimingEvents( |
- scoped_ptr<cc::FrameTimingTracker::CompositeTimingSet> composite_events, |
- scoped_ptr<cc::FrameTimingTracker::MainFrameTimingSet> main_frame_events) |
- override {} |
- |
- // blink::WebLayerTreeView implementation. |
- void setRootLayer(const blink::WebLayer& layer) override; |
- void clearRootLayer() override; |
- void setViewportSize(const blink::WebSize& device_viewport_size) override; |
- void setDeviceScaleFactor(float) override; |
- virtual float deviceScaleFactor() const; |
- void setBackgroundColor(blink::WebColor color) override; |
- void setHasTransparentBackground(bool has_transparent_background) override; |
- void setVisible(bool visible) override; |
- void setPageScaleFactorAndLimits(float page_scale_factor, |
- float minimum, |
- float maximum) override; |
- void startPageScaleAnimation(const blink::WebPoint& destination, |
- bool use_anchor, |
- float new_page_scale, |
- double duration_sec) override; |
- void heuristicsForGpuRasterizationUpdated(bool matches_heuristic) override {} |
- void setNeedsAnimate() override; |
- void didStopFlinging() override {} |
- void compositeAndReadbackAsync( |
- blink::WebCompositeAndReadbackAsyncCallback* callback) override {} |
- void setDeferCommits(bool defer_commits) override {} |
- void registerForAnimations(blink::WebLayer* layer) override; |
- void registerViewportLayers( |
- const blink::WebLayer* overscrollElasticityLayer, |
- const blink::WebLayer* pageScaleLayerLayer, |
- const blink::WebLayer* innerViewportScrollLayer, |
- const blink::WebLayer* outerViewportScrollLayer) override; |
- void clearViewportLayers() override; |
- void registerSelection(const blink::WebSelection& selection) override {} |
- void clearSelection() override {} |
- void setShowFPSCounter(bool) override {} |
- void setShowPaintRects(bool) override {} |
- void setShowDebugBorders(bool) override {} |
- void setShowScrollBottleneckRects(bool) override {} |
- |
- private: |
- // widget_ and window_ will outlive us. |
- blink::WebWidget* widget_; |
- mus::Window* window_; |
- scoped_ptr<cc::LayerTreeHost> layer_tree_host_; |
- scoped_ptr<cc::OutputSurface> output_surface_; |
- scoped_refptr<base::SingleThreadTaskRunner> |
- main_thread_compositor_task_runner_; |
- base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; |
- |
- base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; |
- DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); |
-}; |
- |
-} // namespace html_viewer |
- |
-#endif // COMPONENTS_HTML_VIEWER_WEB_LAYER_TREE_VIEW_IMPL_H_ |