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

Side by Side Diff: content/renderer/android/synchronous_compositor_proxy.h

Issue 1469773002: sync compositor: Software draw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: dcheng review Created 5 years 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 5 #ifndef CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 6 #define CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/common/input/input_event_ack_state.h" 9 #include "content/common/input/input_event_ack_state.h"
10 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h" 10 #include "content/renderer/android/synchronous_compositor_external_begin_frame_s ource.h"
(...skipping 15 matching lines...) Expand all
26 namespace cc { 26 namespace cc {
27 class CompositorFrame; 27 class CompositorFrame;
28 } // namespace cc 28 } // namespace cc
29 29
30 namespace content { 30 namespace content {
31 31
32 class SynchronousCompositorOutputSurface; 32 class SynchronousCompositorOutputSurface;
33 struct SyncCompositorCommonBrowserParams; 33 struct SyncCompositorCommonBrowserParams;
34 struct SyncCompositorCommonRendererParams; 34 struct SyncCompositorCommonRendererParams;
35 struct SyncCompositorDemandDrawHwParams; 35 struct SyncCompositorDemandDrawHwParams;
36 struct SyncCompositorDemandDrawSwParams;
36 37
37 class SynchronousCompositorProxy 38 class SynchronousCompositorProxy
38 : public ui::SynchronousInputHandler, 39 : public ui::SynchronousInputHandler,
39 public SynchronousCompositorExternalBeginFrameSourceClient, 40 public SynchronousCompositorExternalBeginFrameSourceClient,
40 public SynchronousCompositorOutputSurfaceClient { 41 public SynchronousCompositorOutputSurfaceClient {
41 public: 42 public:
42 SynchronousCompositorProxy( 43 SynchronousCompositorProxy(
43 int routing_id, 44 int routing_id,
44 IPC::Sender* sender, 45 IPC::Sender* sender,
45 SynchronousCompositorOutputSurface* output_surface, 46 SynchronousCompositorOutputSurface* output_surface,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const cc::BeginFrameArgs& args, 83 const cc::BeginFrameArgs& args,
83 SyncCompositorCommonRendererParams* common_renderer_params); 84 SyncCompositorCommonRendererParams* common_renderer_params);
84 void OnComputeScroll( 85 void OnComputeScroll(
85 const SyncCompositorCommonBrowserParams& common_params, 86 const SyncCompositorCommonBrowserParams& common_params,
86 base::TimeTicks animation_time, 87 base::TimeTicks animation_time,
87 SyncCompositorCommonRendererParams* common_renderer_params); 88 SyncCompositorCommonRendererParams* common_renderer_params);
88 void DemandDrawHw(const SyncCompositorCommonBrowserParams& common_params, 89 void DemandDrawHw(const SyncCompositorCommonBrowserParams& common_params,
89 const SyncCompositorDemandDrawHwParams& params, 90 const SyncCompositorDemandDrawHwParams& params,
90 SyncCompositorCommonRendererParams* common_renderer_params, 91 SyncCompositorCommonRendererParams* common_renderer_params,
91 cc::CompositorFrame* frame); 92 cc::CompositorFrame* frame);
93 void DemandDrawSw(const SyncCompositorCommonBrowserParams& common_params,
94 const SyncCompositorDemandDrawSwParams& params,
95 bool* result,
96 SyncCompositorCommonRendererParams* common_renderer_params,
97 cc::CompositorFrame* frame);
92 98
93 void DidActivatePendingTree(); 99 void DidActivatePendingTree();
94 void DeliverMessages(); 100 void DeliverMessages();
95 void SendAsyncRendererStateIfNeeded(); 101 void SendAsyncRendererStateIfNeeded();
96 102
97 const int routing_id_; 103 const int routing_id_;
98 IPC::Sender* const sender_; 104 IPC::Sender* const sender_;
99 SynchronousCompositorOutputSurface* const output_surface_; 105 SynchronousCompositorOutputSurface* const output_surface_;
100 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_; 106 SynchronousCompositorExternalBeginFrameSource* const begin_frame_source_;
101 ui::SynchronousInputHandlerProxy* const input_handler_proxy_; 107 ui::SynchronousInputHandlerProxy* const input_handler_proxy_;
(...skipping 14 matching lines...) Expand all
116 bool need_invalidate_; 122 bool need_invalidate_;
117 bool need_begin_frame_; 123 bool need_begin_frame_;
118 bool did_activate_pending_tree_; 124 bool did_activate_pending_tree_;
119 125
120 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy); 126 DISALLOW_COPY_AND_ASSIGN(SynchronousCompositorProxy);
121 }; 127 };
122 128
123 } // namespace content 129 } // namespace content
124 130
125 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_ 131 #endif // CONTENT_RENDERER_ANDROID_SYNCHRONOUS_COMPOSITOR_PROXY_H_
OLDNEW
« no previous file with comments | « content/common/android/sync_compositor_messages.cc ('k') | content/renderer/android/synchronous_compositor_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698