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

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

Issue 1602343002: compositor-worker: cc->blink mutation plumbing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@compositor-worker-ian-patch
Patch Set: Created 4 years, 9 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 CC_TREES_LAYER_TREE_HOST_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_HOST_IMPL_H_
6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_HOST_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <set> 10 #include <set>
11 #include <string> 11 #include <string>
12 #include <unordered_map> 12 #include <unordered_map>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/callback.h"
15 #include "base/macros.h" 16 #include "base/macros.h"
16 #include "base/memory/scoped_ptr.h" 17 #include "base/memory/scoped_ptr.h"
17 #include "base/time/time.h" 18 #include "base/time/time.h"
18 #include "cc/animation/animation_registrar.h" 19 #include "cc/animation/animation_registrar.h"
19 #include "cc/base/cc_export.h" 20 #include "cc/base/cc_export.h"
20 #include "cc/base/synced_property.h" 21 #include "cc/base/synced_property.h"
21 #include "cc/debug/frame_timing_tracker.h" 22 #include "cc/debug/frame_timing_tracker.h"
22 #include "cc/debug/micro_benchmark_controller_impl.h" 23 #include "cc/debug/micro_benchmark_controller_impl.h"
23 #include "cc/input/input_handler.h" 24 #include "cc/input/input_handler.h"
24 #include "cc/input/scrollbar_animation_controller.h" 25 #include "cc/input/scrollbar_animation_controller.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 class SwapPromise; 73 class SwapPromise;
73 class SwapPromiseMonitor; 74 class SwapPromiseMonitor;
74 class SynchronousTaskGraphRunner; 75 class SynchronousTaskGraphRunner;
75 class TextureMailboxDeleter; 76 class TextureMailboxDeleter;
76 class TopControlsManager; 77 class TopControlsManager;
77 class UIResourceBitmap; 78 class UIResourceBitmap;
78 class UIResourceRequest; 79 class UIResourceRequest;
79 struct ScrollAndScaleSet; 80 struct ScrollAndScaleSet;
80 class Viewport; 81 class Viewport;
81 82
83 using BeginFrameCallbackList = std::vector<base::Closure>;
84
82 enum class GpuRasterizationStatus { 85 enum class GpuRasterizationStatus {
83 ON, 86 ON,
84 ON_FORCED, 87 ON_FORCED,
85 OFF_DEVICE, 88 OFF_DEVICE,
86 OFF_VIEWPORT, 89 OFF_VIEWPORT,
87 MSAA_CONTENT, 90 MSAA_CONTENT,
88 OFF_CONTENT 91 OFF_CONTENT
89 }; 92 };
90 93
91 // LayerTreeHost->Proxy callback interface. 94 // LayerTreeHost->Proxy callback interface.
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 453
451 ManagedMemoryPolicy ActualManagedMemoryPolicy() const; 454 ManagedMemoryPolicy ActualManagedMemoryPolicy() const;
452 455
453 size_t memory_allocation_limit_bytes() const; 456 size_t memory_allocation_limit_bytes() const;
454 457
455 void SetViewportSize(const gfx::Size& device_viewport_size); 458 void SetViewportSize(const gfx::Size& device_viewport_size);
456 gfx::Size device_viewport_size() const { return device_viewport_size_; } 459 gfx::Size device_viewport_size() const { return device_viewport_size_; }
457 460
458 const gfx::Transform& DrawTransform() const; 461 const gfx::Transform& DrawTransform() const;
459 462
463 scoped_ptr<BeginFrameCallbackList> ProcessLayerTreeMutations();
464
460 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas(); 465 scoped_ptr<ScrollAndScaleSet> ProcessScrollDeltas();
461 466
462 void set_max_memory_needed_bytes(size_t bytes) { 467 void set_max_memory_needed_bytes(size_t bytes) {
463 max_memory_needed_bytes_ = bytes; 468 max_memory_needed_bytes_ = bytes;
464 } 469 }
465 470
466 FrameRateCounter* fps_counter() { 471 FrameRateCounter* fps_counter() {
467 return fps_counter_.get(); 472 return fps_counter_.get();
468 } 473 }
469 MemoryHistory* memory_history() { 474 MemoryHistory* memory_history() {
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
837 scoped_ptr<FrameTimingTracker> frame_timing_tracker_; 842 scoped_ptr<FrameTimingTracker> frame_timing_tracker_;
838 843
839 scoped_ptr<Viewport> viewport_; 844 scoped_ptr<Viewport> viewport_;
840 845
841 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl); 846 DISALLOW_COPY_AND_ASSIGN(LayerTreeHostImpl);
842 }; 847 };
843 848
844 } // namespace cc 849 } // namespace cc
845 850
846 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_ 851 #endif // CC_TREES_LAYER_TREE_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698