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

Side by Side Diff: cc/proxy.h

Issue 11189037: toggle FPS counter in compositor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: added check for accelerated compositing, removed 'showFPSCounter' from settings, command-line flag … 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 #ifndef CCProxy_h 5 #ifndef CCProxy_h
6 #define CCProxy_h 6 #define CCProxy_h
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include <public/WebCompositorOutputSurface.h> 9 #include <public/WebCompositorOutputSurface.h>
10 10
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU 74 // Forces 3D commands on all contexts to wait for all previous SwapBuffers t o finish before executing in the GPU
75 // process. 75 // process.
76 virtual void forceSerializeOnSwapBuffers() = 0; 76 virtual void forceSerializeOnSwapBuffers() = 0;
77 77
78 // Maximum number of sub-region texture updates supported for each commit. 78 // Maximum number of sub-region texture updates supported for each commit.
79 virtual size_t maxPartialTextureUpdates() const = 0; 79 virtual size_t maxPartialTextureUpdates() const = 0;
80 80
81 virtual void acquireLayerTextures() = 0; 81 virtual void acquireLayerTextures() = 0;
82 82
83 virtual void setShowFPSCounter(bool) = 0;
84
83 // Debug hooks 85 // Debug hooks
84 #ifndef NDEBUG 86 #ifndef NDEBUG
85 static bool isMainThread(); 87 static bool isMainThread();
86 static bool isImplThread(); 88 static bool isImplThread();
87 static bool isMainThreadBlocked(); 89 static bool isMainThreadBlocked();
88 static void setMainThreadBlocked(bool); 90 static void setMainThreadBlocked(bool);
89 #endif 91 #endif
90 92
91 // Testing hooks 93 // Testing hooks
92 virtual void loseContext() = 0; 94 virtual void loseContext() = 0;
(...skipping 25 matching lines...) Expand all
118 #if !ASSERT_DISABLED 120 #if !ASSERT_DISABLED
119 ASSERT(CCProxy::isMainThreadBlocked()); 121 ASSERT(CCProxy::isMainThreadBlocked());
120 CCProxy::setMainThreadBlocked(false); 122 CCProxy::setMainThreadBlocked(false);
121 #endif 123 #endif
122 } 124 }
123 }; 125 };
124 126
125 } 127 }
126 128
127 #endif 129 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698