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

Side by Side Diff: content/renderer/gpu/compositor_output_surface.h

Issue 1205783002: CompositorOutputSurface should change thread priority on the target thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review #3 and git cl format Created 5 years, 6 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
« no previous file with comments | « no previous file | content/renderer/gpu/compositor_output_surface.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 bool Send(IPC::Message* message); 95 bool Send(IPC::Message* message);
96 96
97 bool use_swap_compositor_frame_message_; 97 bool use_swap_compositor_frame_message_;
98 98
99 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_; 99 scoped_refptr<CompositorForwardingMessageFilter> output_surface_filter_;
100 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_; 100 CompositorForwardingMessageFilter::Handler output_surface_filter_handler_;
101 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_; 101 scoped_refptr<CompositorOutputSurfaceProxy> output_surface_proxy_;
102 scoped_refptr<IPC::SyncMessageFilter> message_sender_; 102 scoped_refptr<IPC::SyncMessageFilter> message_sender_;
103 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_; 103 scoped_refptr<FrameSwapMessageQueue> frame_swap_message_queue_;
104 int routing_id_; 104 int routing_id_;
105 #if defined(OS_ANDROID)
105 bool prefers_smoothness_; 106 bool prefers_smoothness_;
106 base::PlatformThreadHandle main_thread_handle_; 107 scoped_refptr<base::SingleThreadTaskRunner> main_thread_runner_;
108 #endif
107 109
108 // TODO(danakj): Remove this when crbug.com/311404 110 // TODO(danakj): Remove this when crbug.com/311404
109 bool layout_test_mode_; 111 bool layout_test_mode_;
110 scoped_ptr<cc::CompositorFrameAck> layout_test_previous_frame_ack_; 112 scoped_ptr<cc::CompositorFrameAck> layout_test_previous_frame_ack_;
111 base::WeakPtrFactory<CompositorOutputSurface> weak_ptrs_; 113 base::WeakPtrFactory<CompositorOutputSurface> weak_ptrs_;
112 }; 114 };
113 115
114 } // namespace content 116 } // namespace content
115 117
116 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_ 118 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_OUTPUT_SURFACE_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/gpu/compositor_output_surface.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698