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

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
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor_cc.cc » ('j') | ui/gfx/compositor/compositor_cc.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 virtual void OnRootLayerChanged() OVERRIDE; 101 virtual void OnRootLayerChanged() OVERRIDE;
102 virtual void DrawTree() OVERRIDE; 102 virtual void DrawTree() OVERRIDE;
103 virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) OVERRIDE; 103 virtual bool ReadPixels(SkBitmap* bitmap, const gfx::Rect& bounds) OVERRIDE;
104 104
105 // WebLayerTreeViewClient implementation. 105 // WebLayerTreeViewClient implementation.
106 virtual void animateAndLayout(double frameBeginTime); 106 virtual void animateAndLayout(double frameBeginTime);
107 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta, 107 virtual void applyScrollAndScale(const WebKit::WebSize& scrollDelta,
108 float scaleFactor); 108 float scaleFactor);
109 virtual void applyScrollDelta(const WebKit::WebSize&); 109 virtual void applyScrollDelta(const WebKit::WebSize&);
110 virtual WebKit::WebGraphicsContext3D* createContext3D(); 110 virtual WebKit::WebGraphicsContext3D* createContext3D();
111 virtual void didCompleteSwapBuffers();
111 virtual void didRebindGraphicsContext(bool success); 112 virtual void didRebindGraphicsContext(bool success);
112 virtual void scheduleComposite(); 113 virtual void scheduleComposite();
113 114
114 // WebLayerClient implementation. 115 // WebLayerClient implementation.
115 virtual void notifyNeedsComposite(); 116 virtual void notifyNeedsComposite();
116 117
117 private: 118 private:
118 gfx::AcceleratedWidget widget_; 119 gfx::AcceleratedWidget widget_;
119 WebKit::WebLayer root_web_layer_; 120 WebKit::WebLayer root_web_layer_;
120 WebKit::WebLayerTreeView host_; 121 WebKit::WebLayerTreeView host_;
121 122
122 DISALLOW_COPY_AND_ASSIGN(CompositorCC); 123 DISALLOW_COPY_AND_ASSIGN(CompositorCC);
123 }; 124 };
124 125
125 } // namespace ui 126 } // namespace ui
126 127
127 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_ 128 #endif // UI_GFX_COMPOSITOR_COMPOSITOR_CC_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/compositor/compositor_cc.cc » ('j') | ui/gfx/compositor/compositor_cc.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698