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

Unified Diff: cc/trees/layer_tree_host.h

Issue 51653008: Remove WGC3D::isContextLost references from cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 7 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 side-by-side diff with in-line comments
Download patch
Index: cc/trees/layer_tree_host.h
diff --git a/cc/trees/layer_tree_host.h b/cc/trees/layer_tree_host.h
index c79f3e515f15a5c54dfaaef35ca4da8ff370caf5..345bc1f730eefe3d442450f75e3326f9ab5dfc45 100644
--- a/cc/trees/layer_tree_host.h
+++ b/cc/trees/layer_tree_host.h
@@ -41,13 +41,13 @@
#include "ui/events/latency_info.h"
#include "ui/gfx/rect.h"
-namespace WebKit { class WebGraphicsContext3D; }
+namespace cc { class TextureLayerClient; }
#if defined(COMPILER_GCC)
namespace BASE_HASH_NAMESPACE {
template <>
-struct hash<WebKit::WebGraphicsContext3D*> {
- size_t operator()(WebKit::WebGraphicsContext3D* ptr) const {
+struct hash<cc::TextureLayerClient*> {
+ size_t operator()(cc::TextureLayerClient* ptr) const {
return hash<size_t>()(reinterpret_cast<size_t>(ptr));
}
};
@@ -276,8 +276,8 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
void SetImplTransform(const gfx::Transform& transform);
void SetLatencyInfo(const ui::LatencyInfo& latency_info);
- virtual void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d);
- virtual void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d);
+ virtual void StartRateLimiter(TextureLayerClient* client);
+ virtual void StopRateLimiter(TextureLayerClient* client);
// RateLimiterClient implementation.
virtual void RateLimit() OVERRIDE;
@@ -417,7 +417,7 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
bool visible_;
- typedef base::hash_map<WebKit::WebGraphicsContext3D*,
+ typedef base::hash_map<TextureLayerClient*,
scoped_refptr<RateLimiter> > RateLimiterMap;
RateLimiterMap rate_limiters_;

Powered by Google App Engine
This is Rietveld 408576698