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

Side by Side Diff: cc/trees/layer_tree_host.h

Issue 22313011: (not for review) Add overhang resource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_wrap_mode
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <vector> 10 #include <vector>
11 11
12 #include "base/basictypes.h" 12 #include "base/basictypes.h"
13 #include "base/cancelable_callback.h" 13 #include "base/cancelable_callback.h"
14 #include "base/containers/hash_tables.h" 14 #include "base/containers/hash_tables.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 #include "base/time/time.h" 18 #include "base/time/time.h"
19 #include "cc/animation/animation_events.h" 19 #include "cc/animation/animation_events.h"
20 #include "cc/base/cc_export.h" 20 #include "cc/base/cc_export.h"
21 #include "cc/base/scoped_ptr_vector.h" 21 #include "cc/base/scoped_ptr_vector.h"
22 #include "cc/input/input_handler.h" 22 #include "cc/input/input_handler.h"
23 #include "cc/input/scrollbar.h" 23 #include "cc/input/scrollbar.h"
24 #include "cc/input/top_controls_state.h" 24 #include "cc/input/top_controls_state.h"
25 #include "cc/layers/layer_lists.h" 25 #include "cc/layers/layer_lists.h"
26 #include "cc/output/output_surface.h" 26 #include "cc/output/output_surface.h"
27 #include "cc/resources/scoped_ui_resource.h"
27 #include "cc/resources/ui_resource_bitmap.h" 28 #include "cc/resources/ui_resource_bitmap.h"
28 #include "cc/resources/ui_resource_client.h" 29 #include "cc/resources/ui_resource_client.h"
29 #include "cc/scheduler/rate_limiter.h" 30 #include "cc/scheduler/rate_limiter.h"
30 #include "cc/trees/layer_tree_host_client.h" 31 #include "cc/trees/layer_tree_host_client.h"
31 #include "cc/trees/layer_tree_host_common.h" 32 #include "cc/trees/layer_tree_host_common.h"
32 #include "cc/trees/layer_tree_settings.h" 33 #include "cc/trees/layer_tree_settings.h"
33 #include "cc/trees/occlusion_tracker.h" 34 #include "cc/trees/occlusion_tracker.h"
34 #include "cc/trees/proxy.h" 35 #include "cc/trees/proxy.h"
35 #include "third_party/skia/include/core/SkColor.h" 36 #include "third_party/skia/include/core/SkColor.h"
36 #include "ui/base/latency_info.h" 37 #include "ui/base/latency_info.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 373
373 float page_scale_factor_; 374 float page_scale_factor_;
374 float min_page_scale_factor_; 375 float min_page_scale_factor_;
375 float max_page_scale_factor_; 376 float max_page_scale_factor_;
376 gfx::Transform impl_transform_; 377 gfx::Transform impl_transform_;
377 bool trigger_idle_updates_; 378 bool trigger_idle_updates_;
378 379
379 SkColor background_color_; 380 SkColor background_color_;
380 bool has_transparent_background_; 381 bool has_transparent_background_;
381 382
383 scoped_refptr<UIResourceBitmap> overhang_bitmap_;
384 scoped_ptr<ScopedUIResource> overhang_ui_resource_;
385
382 typedef ScopedPtrVector<PrioritizedResource> TextureList; 386 typedef ScopedPtrVector<PrioritizedResource> TextureList;
383 size_t partial_texture_update_requests_; 387 size_t partial_texture_update_requests_;
384 388
385 scoped_ptr<AnimationRegistrar> animation_registrar_; 389 scoped_ptr<AnimationRegistrar> animation_registrar_;
386 390
387 struct PendingPageScaleAnimation { 391 struct PendingPageScaleAnimation {
388 gfx::Vector2d target_offset; 392 gfx::Vector2d target_offset;
389 bool use_anchor; 393 bool use_anchor;
390 float scale; 394 float scale;
391 base::TimeDelta duration; 395 base::TimeDelta duration;
(...skipping 19 matching lines...) Expand all
411 }; 415 };
412 LCDTextMetrics lcd_text_metrics_; 416 LCDTextMetrics lcd_text_metrics_;
413 int tree_id_; 417 int tree_id_;
414 418
415 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 419 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
416 }; 420 };
417 421
418 } // namespace cc 422 } // namespace cc
419 423
420 #endif // CC_TREES_LAYER_TREE_HOST_H_ 424 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698