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

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

Issue 8558030: Prepare Chromium for WebCompositor::initialize. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 5 #ifndef UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
6 #define UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 6 #define UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/singleton.h" 10 #include "base/memory/singleton.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 class COMPOSITOR_EXPORT CompositorCC 80 class COMPOSITOR_EXPORT CompositorCC
81 : public Compositor, 81 : public Compositor,
82 NON_EXPORTED_BASE(public WebKit::WebLayerTreeViewClient), 82 NON_EXPORTED_BASE(public WebKit::WebLayerTreeViewClient),
83 NON_EXPORTED_BASE(public WebKit::WebLayerClient) { 83 NON_EXPORTED_BASE(public WebKit::WebLayerClient) {
84 public: 84 public:
85 CompositorCC(CompositorDelegate* delegate, 85 CompositorCC(CompositorDelegate* delegate,
86 gfx::AcceleratedWidget widget, 86 gfx::AcceleratedWidget widget,
87 const gfx::Size& size); 87 const gfx::Size& size);
88 virtual ~CompositorCC(); 88 virtual ~CompositorCC();
89 89
90 static void InitializeThread(); 90 static void Initialize(bool useThread);
sky 2011/11/18 23:27:30 nit: useThread -> use_thread and document what it
91 static void TerminateThread(); 91 static void Terminate();
92 92
93 protected: 93 protected:
94 // Compositor implementation. 94 // Compositor implementation.
95 virtual Texture* CreateTexture() OVERRIDE; 95 virtual Texture* CreateTexture() OVERRIDE;
96 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; 96 virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
97 virtual void ScheduleDraw() OVERRIDE; 97 virtual void ScheduleDraw() OVERRIDE;
98 virtual void OnNotifyStart(bool clear) OVERRIDE; 98 virtual void OnNotifyStart(bool clear) OVERRIDE;
99 virtual void OnNotifyEnd() OVERRIDE; 99 virtual void OnNotifyEnd() OVERRIDE;
100 virtual void OnWidgetSizeChanged() OVERRIDE; 100 virtual void OnWidgetSizeChanged() OVERRIDE;
101 virtual void OnRootLayerChanged() OVERRIDE; 101 virtual void OnRootLayerChanged() OVERRIDE;
(...skipping 16 matching lines...) Expand all
118 gfx::AcceleratedWidget widget_; 118 gfx::AcceleratedWidget widget_;
119 WebKit::WebLayer root_web_layer_; 119 WebKit::WebLayer root_web_layer_;
120 WebKit::WebLayerTreeView host_; 120 WebKit::WebLayerTreeView host_;
121 121
122 DISALLOW_COPY_AND_ASSIGN(CompositorCC); 122 DISALLOW_COPY_AND_ASSIGN(CompositorCC);
123 }; 123 };
124 124
125 } // namespace ui 125 } // namespace ui
126 126
127 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 127 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698