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

Side by Side Diff: mojo/services/html_viewer/weblayertreeview_impl.h

Issue 348093004: Make cc output surface creation async (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Android compile fixes Created 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 5 #ifndef MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 6 #define MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 void set_view(View* view) { view_ = view; } 44 void set_view(View* view) { view_ = view; }
45 45
46 // cc::LayerTreeHostClient implementation. 46 // cc::LayerTreeHostClient implementation.
47 virtual void WillBeginMainFrame(int frame_id) OVERRIDE; 47 virtual void WillBeginMainFrame(int frame_id) OVERRIDE;
48 virtual void DidBeginMainFrame() OVERRIDE; 48 virtual void DidBeginMainFrame() OVERRIDE;
49 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE; 49 virtual void BeginMainFrame(const cc::BeginFrameArgs& args) OVERRIDE;
50 virtual void Layout() OVERRIDE; 50 virtual void Layout() OVERRIDE;
51 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta, 51 virtual void ApplyViewportDeltas(const gfx::Vector2d& scroll_delta,
52 float page_scale, 52 float page_scale,
53 float top_controls_delta) OVERRIDE; 53 float top_controls_delta) OVERRIDE;
54 virtual scoped_ptr<cc::OutputSurface> CreateOutputSurface( 54 virtual void RequestNewOutputSurface(bool fallback) OVERRIDE;
55 bool fallback) OVERRIDE;
56 virtual void DidInitializeOutputSurface() OVERRIDE; 55 virtual void DidInitializeOutputSurface() OVERRIDE;
57 virtual void WillCommit() OVERRIDE; 56 virtual void WillCommit() OVERRIDE;
58 virtual void DidCommit() OVERRIDE; 57 virtual void DidCommit() OVERRIDE;
59 virtual void DidCommitAndDrawFrame() OVERRIDE; 58 virtual void DidCommitAndDrawFrame() OVERRIDE;
60 virtual void DidCompleteSwapBuffers() OVERRIDE; 59 virtual void DidCompleteSwapBuffers() OVERRIDE;
61 virtual void RateLimitSharedMainThreadContext() OVERRIDE {} 60 virtual void RateLimitSharedMainThreadContext() OVERRIDE {}
62 61
63 // blink::WebLayerTreeView implementation. 62 // blink::WebLayerTreeView implementation.
64 virtual void setSurfaceReady() OVERRIDE; 63 virtual void setSurfaceReady() OVERRIDE;
65 virtual void setRootLayer(const blink::WebLayer& layer) OVERRIDE; 64 virtual void setRootLayer(const blink::WebLayer& layer) OVERRIDE;
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 main_thread_compositor_task_runner_; 122 main_thread_compositor_task_runner_;
124 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_; 123 base::WeakPtr<WebLayerTreeViewImpl> main_thread_bound_weak_ptr_;
125 124
126 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_; 125 base::WeakPtrFactory<WebLayerTreeViewImpl> weak_factory_;
127 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl); 126 DISALLOW_COPY_AND_ASSIGN(WebLayerTreeViewImpl);
128 }; 127 };
129 128
130 } // namespace mojo 129 } // namespace mojo
131 130
132 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_ 131 #endif // MOJO_SERVICES_HTML_VIEWER_WEBLAYERTREEVIEW_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698