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

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

Issue 10798006: Implement WebCompositorOutputSurface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 8 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
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_THREAD_H_ 5 #ifndef CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_
6 #define CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ 6 #define CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 22 matching lines...) Expand all
33 // to the compositor's thread. 33 // to the compositor's thread.
34 IPC::ChannelProxy::MessageFilter* GetMessageFilter() const; 34 IPC::ChannelProxy::MessageFilter* GetMessageFilter() const;
35 35
36 // Callable from the main thread only. 36 // Callable from the main thread only.
37 void AddInputHandler(int routing_id, 37 void AddInputHandler(int routing_id,
38 int input_handler_id, 38 int input_handler_id,
39 const base::WeakPtr<RenderViewImpl>& render_view_impl); 39 const base::WeakPtr<RenderViewImpl>& render_view_impl);
40 40
41 webkit_glue::WebThreadImpl* GetWebThread() { return &thread_; } 41 webkit_glue::WebThreadImpl* GetWebThread() { return &thread_; }
42 42
43 MessageLoop* message_loop() { return thread_.message_loop(); }
44
43 private: 45 private:
44 // Callback only from the compositor's thread. 46 // Callback only from the compositor's thread.
45 void RemoveInputHandler(int routing_id); 47 void RemoveInputHandler(int routing_id);
46 48
47 // Called from the compositor's thread. 49 // Called from the compositor's thread.
48 void HandleInputEvent(int routing_id, 50 void HandleInputEvent(int routing_id,
49 const WebKit::WebInputEvent* input_event); 51 const WebKit::WebInputEvent* input_event);
50 52
51 // Called from the compositor's thread. 53 // Called from the compositor's thread.
52 void AddInputHandlerOnCompositorThread( 54 void AddInputHandlerOnCompositorThread(
53 int routing_id, 55 int routing_id,
54 int input_handler_id, 56 int input_handler_id,
55 scoped_refptr<base::MessageLoopProxy> main_loop, 57 scoped_refptr<base::MessageLoopProxy> main_loop,
56 const base::WeakPtr<RenderViewImpl>& render_view_impl); 58 const base::WeakPtr<RenderViewImpl>& render_view_impl);
57 59
58 class InputHandlerWrapper; 60 class InputHandlerWrapper;
59 friend class InputHandlerWrapper; 61 friend class InputHandlerWrapper;
60 62
61 typedef std::map<int, // routing_id 63 typedef std::map<int, // routing_id
62 scoped_refptr<InputHandlerWrapper> > InputHandlerMap; 64 scoped_refptr<InputHandlerWrapper> > InputHandlerMap;
63 InputHandlerMap input_handlers_; 65 InputHandlerMap input_handlers_;
64 66
65 webkit_glue::WebThreadImpl thread_; 67 webkit_glue::WebThreadImpl thread_;
66 scoped_refptr<InputEventFilter> filter_; 68 scoped_refptr<InputEventFilter> filter_;
67 }; 69 };
68 70
69 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_ 71 #endif // CONTENT_RENDERER_GPU_COMPOSITOR_THREAD_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/compositor_output_surface.cc ('k') | content/renderer/render_thread_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698