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

Side by Side Diff: ui/compositor/compositor.h

Issue 148243013: Add shared bitmap managers for browser and renderer processes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.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 UI_COMPOSITOR_COMPOSITOR_H_ 5 #ifndef UI_COMPOSITOR_COMPOSITOR_H_
6 #define UI_COMPOSITOR_COMPOSITOR_H_ 6 #define UI_COMPOSITOR_COMPOSITOR_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/containers/hash_tables.h" 10 #include "base/containers/hash_tables.h"
(...skipping 15 matching lines...) Expand all
26 namespace base { 26 namespace base {
27 class MessageLoopProxy; 27 class MessageLoopProxy;
28 class RunLoop; 28 class RunLoop;
29 } 29 }
30 30
31 namespace cc { 31 namespace cc {
32 class ContextProvider; 32 class ContextProvider;
33 class Layer; 33 class Layer;
34 class LayerTreeDebugState; 34 class LayerTreeDebugState;
35 class LayerTreeHost; 35 class LayerTreeHost;
36 class SharedBitmapManager;
36 } 37 }
37 38
38 namespace gfx { 39 namespace gfx {
39 class Rect; 40 class Rect;
40 class Size; 41 class Size;
41 } 42 }
42 43
43 namespace gpu { 44 namespace gpu {
44 struct Mailbox; 45 struct Mailbox;
45 } 46 }
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 : NON_EXPORTED_BASE(public cc::LayerTreeHostClient), 171 : NON_EXPORTED_BASE(public cc::LayerTreeHostClient),
171 NON_EXPORTED_BASE(public cc::LayerTreeHostSingleThreadClient) { 172 NON_EXPORTED_BASE(public cc::LayerTreeHostSingleThreadClient) {
172 public: 173 public:
173 explicit Compositor(gfx::AcceleratedWidget widget); 174 explicit Compositor(gfx::AcceleratedWidget widget);
174 virtual ~Compositor(); 175 virtual ~Compositor();
175 176
176 static void Initialize(); 177 static void Initialize();
177 static bool WasInitializedWithThread(); 178 static bool WasInitializedWithThread();
178 static scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop(); 179 static scoped_refptr<base::MessageLoopProxy> GetCompositorMessageLoop();
179 static void Terminate(); 180 static void Terminate();
181 static void SetSharedBitmapManager(cc::SharedBitmapManager* manager);
180 182
181 // Schedules a redraw of the layer tree associated with this compositor. 183 // Schedules a redraw of the layer tree associated with this compositor.
182 void ScheduleDraw(); 184 void ScheduleDraw();
183 185
184 // Sets the root of the layer tree drawn by this Compositor. The root layer 186 // Sets the root of the layer tree drawn by this Compositor. The root layer
185 // must have no parent. The compositor's root layer is reset if the root layer 187 // must have no parent. The compositor's root layer is reset if the root layer
186 // is destroyed. NULL can be passed to reset the root layer, in which case the 188 // is destroyed. NULL can be passed to reset the root layer, in which case the
187 // compositor will stop drawing anything. 189 // compositor will stop drawing anything.
188 // The Compositor does not own the root layer. 190 // The Compositor does not own the root layer.
189 const Layer* root_layer() const { return root_layer_; } 191 const Layer* root_layer() const { return root_layer_; }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 bool draw_on_compositing_end_; 335 bool draw_on_compositing_end_;
334 336
335 base::WeakPtrFactory<Compositor> schedule_draw_factory_; 337 base::WeakPtrFactory<Compositor> schedule_draw_factory_;
336 338
337 DISALLOW_COPY_AND_ASSIGN(Compositor); 339 DISALLOW_COPY_AND_ASSIGN(Compositor);
338 }; 340 };
339 341
340 } // namespace ui 342 } // namespace ui
341 343
342 #endif // UI_COMPOSITOR_COMPOSITOR_H_ 344 #endif // UI_COMPOSITOR_COMPOSITOR_H_
OLDNEW
« no previous file with comments | « content/renderer/gpu/render_widget_compositor.cc ('k') | ui/compositor/compositor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698