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

Side by Side Diff: webkit/compositor_bindings/WebLayerTreeViewImpl.cpp

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 2 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
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 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 #include "config.h" 5 #include "config.h"
6 #include "WebLayerTreeViewImpl.h" 6 #include "WebLayerTreeViewImpl.h"
7 7
8 #include "WebLayerImpl.h" 8 #include "WebLayerImpl.h"
9 #include "WebToCCInputHandlerAdapter.h" 9 #include "WebToCCInputHandlerAdapter.h"
10 #include "cc/font_atlas.h" 10 #include "cc/font_atlas.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 asciiToRectTable[i] = convert(asciiToWebRectTable[i]); 188 asciiToRectTable[i] = convert(asciiToWebRectTable[i]);
189 scoped_ptr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectT able, fontHeight); 189 scoped_ptr<CCFontAtlas> fontAtlas = CCFontAtlas::create(bitmap, asciiToRectT able, fontHeight);
190 m_layerTreeHost->setFontAtlas(fontAtlas.Pass()); 190 m_layerTreeHost->setFontAtlas(fontAtlas.Pass());
191 } 191 }
192 192
193 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes) 193 void WebLayerTreeViewImpl::loseCompositorContext(int numTimes)
194 { 194 {
195 m_layerTreeHost->loseContext(numTimes); 195 m_layerTreeHost->loseContext(numTimes);
196 } 196 }
197 197
198 void WebLayerTreeViewImpl::setShowFPSCounter(bool show)
199 {
200 m_layerTreeHost->setShowFPSCounter(show);
201 }
202
198 void WebLayerTreeViewImpl::willBeginFrame() 203 void WebLayerTreeViewImpl::willBeginFrame()
199 { 204 {
200 m_client->willBeginFrame(); 205 m_client->willBeginFrame();
201 } 206 }
202 207
203 void WebLayerTreeViewImpl::didBeginFrame() 208 void WebLayerTreeViewImpl::didBeginFrame()
204 { 209 {
205 m_client->didBeginFrame(); 210 m_client->didBeginFrame();
206 } 211 }
207 212
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 { 263 {
259 m_client->didCompleteSwapBuffers(); 264 m_client->didCompleteSwapBuffers();
260 } 265 }
261 266
262 void WebLayerTreeViewImpl::scheduleComposite() 267 void WebLayerTreeViewImpl::scheduleComposite()
263 { 268 {
264 m_client->scheduleComposite(); 269 m_client->scheduleComposite();
265 } 270 }
266 271
267 } // namespace WebKit 272 } // namespace WebKit
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698