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

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

Issue 9014030: Plumbs ::didCompleteSwapBuffers in CompositorCC (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nicer diff Created 8 years, 11 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 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 protected: 91 protected:
92 // Compositor implementation. 92 // Compositor implementation.
93 virtual Texture* CreateTexture() OVERRIDE; 93 virtual Texture* CreateTexture() OVERRIDE;
94 virtual void Blur(const gfx::Rect& bounds) OVERRIDE; 94 virtual void Blur(const gfx::Rect& bounds) OVERRIDE;
95 virtual void ScheduleDraw() OVERRIDE; 95 virtual void ScheduleDraw() OVERRIDE;
96 virtual void OnNotifyStart(bool clear) OVERRIDE; 96 virtual void OnNotifyStart(bool clear) OVERRIDE;
97 virtual void OnNotifyEnd() OVERRIDE; 97 virtual void OnNotifyEnd() OVERRIDE;
98 virtual void OnWidgetSizeChanged() OVERRIDE; 98 virtual void OnWidgetSizeChanged() OVERRIDE;
99 virtual void OnRootLayerChanged() OVERRIDE; 99 virtual void OnRootLayerChanged() OVERRIDE;
100 virtual void DrawTree() OVERRIDE; 100 virtual void DrawTree() OVERRIDE;
101 virtual bool CompositesAsynchronously() OVERRIDE;
101 virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) OVERRIDE; 102 virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) OVERRIDE;
102 103
103 // WebLayerTreeViewClient implementation. 104 // WebLayerTreeViewClient implementation.
104 virtual void animateAndLayout(double frameBeginTime); 105 virtual void animateAndLayout(double frameBeginTime);
105 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, 106 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta,
106 float scaleFactor); 107 float scaleFactor);
107 virtual void applyScrollDelta(const WebKit::WebSize&); 108 virtual void applyScrollDelta(const WebKit::WebSize&);
108 virtual WebKit::WebGraphicsContext3D* createContext3D(); 109 virtual WebKit::WebGraphicsContext3D* createContext3D();
110 virtual void didCompleteSwapBuffers();
109 virtual void didRebindGraphicsContext(bool success); 111 virtual void didRebindGraphicsContext(bool success);
110 virtual void scheduleComposite(); 112 virtual void scheduleComposite();
111 113
112 private: 114 private:
113 gfx::AcceleratedWidget widget_; 115 gfx::AcceleratedWidget widget_;
114 WebKit::WebLayer root_web_layer_; 116 WebKit::WebLayer root_web_layer_;
115 WebKit::WebLayerTreeView host_; 117 WebKit::WebLayerTreeView host_;
116 118
117 DISALLOW_COPY_AND_ASSIGN(CompositorCC); 119 DISALLOW_COPY_AND_ASSIGN(CompositorCC);
118 }; 120 };
119 121
120 } // namespace ui 122 } // namespace ui
121 123
122 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 124 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698