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

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

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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 | « cc/test/scheduler_test_common.cc ('k') | 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>
10 #include <set> 9 #include <set>
11 #include <string> 10 #include <string>
12 #include <vector> 11 #include <vector>
13 12
14 #include "base/basictypes.h" 13 #include "base/basictypes.h"
15 #include "base/cancelable_callback.h" 14 #include "base/cancelable_callback.h"
16 #include "base/containers/hash_tables.h" 15 #include "base/containers/hash_tables.h"
17 #include "base/memory/ref_counted.h" 16 #include "base/memory/ref_counted.h"
18 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
19 #include "base/memory/weak_ptr.h" 18 #include "base/memory/weak_ptr.h"
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 234
236 void SetOverhangBitmap(const SkBitmap& bitmap); 235 void SetOverhangBitmap(const SkBitmap& bitmap);
237 236
238 PrioritizedResourceManager* contents_texture_manager() const { 237 PrioritizedResourceManager* contents_texture_manager() const {
239 return contents_texture_manager_.get(); 238 return contents_texture_manager_.get();
240 } 239 }
241 240
242 void SetVisible(bool visible); 241 void SetVisible(bool visible);
243 bool visible() const { return visible_; } 242 bool visible() const { return visible_; }
244 243
244 void SetThrottleFrameProduction(bool throttle);
245
245 void StartPageScaleAnimation(const gfx::Vector2d& target_offset, 246 void StartPageScaleAnimation(const gfx::Vector2d& target_offset,
246 bool use_anchor, 247 bool use_anchor,
247 float scale, 248 float scale,
248 base::TimeDelta duration); 249 base::TimeDelta duration);
249 250
250 void ApplyScrollAndScale(ScrollAndScaleSet* info); 251 void ApplyScrollAndScale(ScrollAndScaleSet* info);
251 void SetImplTransform(const gfx::Transform& transform); 252 void SetImplTransform(const gfx::Transform& transform);
252 253
253 // Virtual for tests. 254 // Virtual for tests.
254 virtual void StartRateLimiter(); 255 virtual void StartRateLimiter();
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 struct UIResourceClientData { 377 struct UIResourceClientData {
377 UIResourceClient* client; 378 UIResourceClient* client;
378 gfx::Size size; 379 gfx::Size size;
379 }; 380 };
380 381
381 typedef base::hash_map<UIResourceId, UIResourceClientData> 382 typedef base::hash_map<UIResourceId, UIResourceClientData>
382 UIResourceClientMap; 383 UIResourceClientMap;
383 UIResourceClientMap ui_resource_client_map_; 384 UIResourceClientMap ui_resource_client_map_;
384 int next_ui_resource_id_; 385 int next_ui_resource_id_;
385 386
386 typedef std::list<UIResourceRequest> UIResourceRequestQueue; 387 typedef std::vector<UIResourceRequest> UIResourceRequestQueue;
387 UIResourceRequestQueue ui_resource_request_queue_; 388 UIResourceRequestQueue ui_resource_request_queue_;
388 389
389 void RecordGpuRasterizationHistogram(); 390 void RecordGpuRasterizationHistogram();
390 void CalculateLCDTextMetricsCallback(Layer* layer); 391 void CalculateLCDTextMetricsCallback(Layer* layer);
391 392
392 void NotifySwapPromiseMonitorsOfSetNeedsCommit(); 393 void NotifySwapPromiseMonitorsOfSetNeedsCommit();
393 394
394 bool inside_begin_main_frame_; 395 bool inside_begin_main_frame_;
395 bool needs_full_tree_sync_; 396 bool needs_full_tree_sync_;
396 397
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 484
484 uint32_t surface_id_namespace_; 485 uint32_t surface_id_namespace_;
485 uint32_t next_surface_sequence_; 486 uint32_t next_surface_sequence_;
486 487
487 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost); 488 DISALLOW_COPY_AND_ASSIGN(LayerTreeHost);
488 }; 489 };
489 490
490 } // namespace cc 491 } // namespace cc
491 492
492 #endif // CC_TREES_LAYER_TREE_HOST_H_ 493 #endif // CC_TREES_LAYER_TREE_HOST_H_
OLDNEW
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/trees/layer_tree_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698