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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
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 CC_TREES_LAYER_TREE_HOST_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_H_
6 #define CC_TREES_LAYER_TREE_HOST_H_ 6 #define CC_TREES_LAYER_TREE_HOST_H_
7 7
8 #include <limits> 8 #include <limits>
9 #include <list> 9 #include <list>
10 #include <string> 10 #include <string>
(...skipping 23 matching lines...) Expand all
34 #include "cc/scheduler/rate_limiter.h" 34 #include "cc/scheduler/rate_limiter.h"
35 #include "cc/trees/layer_tree_host_client.h" 35 #include "cc/trees/layer_tree_host_client.h"
36 #include "cc/trees/layer_tree_host_common.h" 36 #include "cc/trees/layer_tree_host_common.h"
37 #include "cc/trees/layer_tree_settings.h" 37 #include "cc/trees/layer_tree_settings.h"
38 #include "cc/trees/occlusion_tracker.h" 38 #include "cc/trees/occlusion_tracker.h"
39 #include "cc/trees/proxy.h" 39 #include "cc/trees/proxy.h"
40 #include "third_party/skia/include/core/SkColor.h" 40 #include "third_party/skia/include/core/SkColor.h"
41 #include "ui/events/latency_info.h" 41 #include "ui/events/latency_info.h"
42 #include "ui/gfx/rect.h" 42 #include "ui/gfx/rect.h"
43 43
44 namespace WebKit { class WebGraphicsContext3D; } 44 namespace cc { class TextureLayerClient; }
45 45
46 #if defined(COMPILER_GCC) 46 #if defined(COMPILER_GCC)
47 namespace BASE_HASH_NAMESPACE { 47 namespace BASE_HASH_NAMESPACE {
48 template <> 48 template <>
49 struct hash<WebKit::WebGraphicsContext3D*> { 49 struct hash<cc::TextureLayerClient*> {
50 size_t operator()(WebKit::WebGraphicsContext3D* ptr) const { 50 size_t operator()(cc::TextureLayerClient* ptr) const {
51 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 51 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
52 } 52 }
53 }; 53 };
54 } // namespace BASE_HASH_NAMESPACE 54 } // namespace BASE_HASH_NAMESPACE
55 #endif // COMPILER 55 #endif // COMPILER
56 56
57 namespace cc { 57 namespace cc {
58 58
59 class AnimationRegistrar; 59 class AnimationRegistrar;
60 class HeadsUpDisplayLayer; 60 class HeadsUpDisplayLayer;
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 void StartPageScaleAnimation(gfx::Vector2d target_offset, 269 void StartPageScaleAnimation(gfx::Vector2d target_offset,
270 bool use_anchor, 270 bool use_anchor,
271 float scale, 271 float scale,
272 base::TimeDelta duration); 272 base::TimeDelta duration);
273 273
274 void ApplyScrollAndScale(const ScrollAndScaleSet& info); 274 void ApplyScrollAndScale(const ScrollAndScaleSet& info);
275 275
276 void SetImplTransform(const gfx::Transform& transform); 276 void SetImplTransform(const gfx::Transform& transform);
277 void SetLatencyInfo(const ui::LatencyInfo& latency_info); 277 void SetLatencyInfo(const ui::LatencyInfo& latency_info);
278 278
279 virtual void StartRateLimiter(WebKit::WebGraphicsContext3D* context3d); 279 virtual void StartRateLimiter(TextureLayerClient* client);
280 virtual void StopRateLimiter(WebKit::WebGraphicsContext3D* context3d); 280 virtual void StopRateLimiter(TextureLayerClient* client);
281 281
282 // RateLimiterClient implementation. 282 // RateLimiterClient implementation.
283 virtual void RateLimit() OVERRIDE; 283 virtual void RateLimit() OVERRIDE;
284 284
285 bool AlwaysUsePartialTextureUpdates(); 285 bool AlwaysUsePartialTextureUpdates();
286 size_t MaxPartialTextureUpdates() const; 286 size_t MaxPartialTextureUpdates() const;
287 bool RequestPartialTextureUpdate(); 287 bool RequestPartialTextureUpdate();
288 288
289 void SetDeviceScaleFactor(float device_scale_factor); 289 void SetDeviceScaleFactor(float device_scale_factor);
290 float device_scale_factor() const { return device_scale_factor_; } 290 float device_scale_factor() const { return device_scale_factor_; }
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 410
411 const LayerTreeSettings settings_; 411 const LayerTreeSettings settings_;
412 LayerTreeDebugState debug_state_; 412 LayerTreeDebugState debug_state_;
413 413
414 gfx::Size device_viewport_size_; 414 gfx::Size device_viewport_size_;
415 float overdraw_bottom_height_; 415 float overdraw_bottom_height_;
416 float device_scale_factor_; 416 float device_scale_factor_;
417 417
418 bool visible_; 418 bool visible_;
419 419
420 typedef base::hash_map<WebKit::WebGraphicsContext3D*, 420 typedef base::hash_map<TextureLayerClient*,
421 scoped_refptr<RateLimiter> > RateLimiterMap; 421 scoped_refptr<RateLimiter> > RateLimiterMap;
422 RateLimiterMap rate_limiters_; 422 RateLimiterMap rate_limiters_;
423 423
424 float page_scale_factor_; 424 float page_scale_factor_;
425 float min_page_scale_factor_; 425 float min_page_scale_factor_;
426 float max_page_scale_factor_; 426 float max_page_scale_factor_;
427 gfx::Transform impl_transform_; 427 gfx::Transform impl_transform_;
428 bool trigger_idle_updates_; 428 bool trigger_idle_updates_;
429 429
430 SkColor background_color_; 430 SkColor background_color_;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 scoped_refptr<Layer> outer_viewport_scroll_layer_; 473 scoped_refptr<Layer> outer_viewport_scroll_layer_;
474 474
475 SharedBitmapManager* shared_bitmap_manager_; 475 SharedBitmapManager* shared_bitmap_manager_;
476 476
477 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 477 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
478 }; 478 };
479 479
480 } // namespace cc 480 } // namespace cc
481 481
482 #endif // CC_TREES_LAYER_TREE_HOST_H_ 482 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698