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

Side by Side Diff: webkit/support/web_layer_tree_view_impl_for_testing.h

Issue 19267016: Add a flag to allow renderer to use software compositor when GL compositor doesn't work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « ui/compositor/compositor.cc ('k') | webkit/support/web_layer_tree_view_impl_for_testing.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 5 #ifndef WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
6 #define WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 6 #define WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "cc/trees/layer_tree_host_client.h" 9 #include "cc/trees/layer_tree_host_client.h"
10 #include "third_party/WebKit/public/platform/WebLayerTreeView.h" 10 #include "third_party/WebKit/public/platform/WebLayerTreeView.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void renderingStats( 56 virtual void renderingStats(
57 WebKit::WebRenderingStats& stats) const; // NOLINT(runtime/references) 57 WebKit::WebRenderingStats& stats) const; // NOLINT(runtime/references)
58 58
59 // cc::LayerTreeHostClient implementation. 59 // cc::LayerTreeHostClient implementation.
60 virtual void WillBeginFrame() OVERRIDE {} 60 virtual void WillBeginFrame() OVERRIDE {}
61 virtual void DidBeginFrame() OVERRIDE {} 61 virtual void DidBeginFrame() OVERRIDE {}
62 virtual void Animate(double frame_begin_time) OVERRIDE {} 62 virtual void Animate(double frame_begin_time) OVERRIDE {}
63 virtual void Layout() OVERRIDE; 63 virtual void Layout() OVERRIDE;
64 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale) 64 virtual void ApplyScrollAndScale(gfx::Vector2d scroll_delta, float page_scale)
65 OVERRIDE; 65 OVERRIDE;
66 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface() OVERRIDE; 66 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface(bool fallback)
67 OVERRIDE;
67 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {} 68 virtual void DidInitializeOutputSurface(bool success) OVERRIDE {}
68 virtual void WillCommit() OVERRIDE {} 69 virtual void WillCommit() OVERRIDE {}
69 virtual void DidCommit() OVERRIDE {} 70 virtual void DidCommit() OVERRIDE {}
70 virtual void DidCommitAndDrawFrame() OVERRIDE {} 71 virtual void DidCommitAndDrawFrame() OVERRIDE {}
71 virtual void DidCompleteSwapBuffers() OVERRIDE {} 72 virtual void DidCompleteSwapBuffers() OVERRIDE {}
72 virtual void ScheduleComposite() OVERRIDE; 73 virtual void ScheduleComposite() OVERRIDE;
73 virtual scoped_refptr<cc::ContextProvider> 74 virtual scoped_refptr<cc::ContextProvider>
74 OffscreenContextProviderForMainThread() OVERRIDE; 75 OffscreenContextProviderForMainThread() OVERRIDE;
75 virtual scoped_refptr<cc::ContextProvider> 76 virtual scoped_refptr<cc::ContextProvider>
76 OffscreenContextProviderForCompositorThread() OVERRIDE; 77 OffscreenContextProviderForCompositorThread() OVERRIDE;
77 78
78 private: 79 private:
79 scoped_ptr<cc::LayerTreeHost> layer_tree_host_; 80 scoped_ptr<cc::LayerTreeHost> layer_tree_host_;
80 81
81 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting); 82 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImplForTesting);
82 }; 83 };
83 84
84 } // namespace webkit 85 } // namespace webkit
85 86
86 #endif // WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_ 87 #endif // WEBKIT_SUPPORT_WEB_LAYER_TREE_VIEW_IMPL_FOR_TESTING_H_
OLDNEW
« no previous file with comments | « ui/compositor/compositor.cc ('k') | webkit/support/web_layer_tree_view_impl_for_testing.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698