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

Side by Side Diff: cc/surfaces/display.h

Issue 1418273002: cc: Move draw params from SetExternalDrawConstraints to OnDraw (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: EXPECT_SCOPED Created 5 years 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/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/display.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SURFACES_DISPLAY_H_ 5 #ifndef CC_SURFACES_DISPLAY_H_
6 #define CC_SURFACES_DISPLAY_H_ 6 #define CC_SURFACES_DISPLAY_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 bool DrawAndSwap() override; 77 bool DrawAndSwap() override;
78 78
79 // OutputSurfaceClient implementation. 79 // OutputSurfaceClient implementation.
80 void CommitVSyncParameters(base::TimeTicks timebase, 80 void CommitVSyncParameters(base::TimeTicks timebase,
81 base::TimeDelta interval) override; 81 base::TimeDelta interval) override;
82 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override; 82 void SetNeedsRedrawRect(const gfx::Rect& damage_rect) override;
83 void DidSwapBuffers() override; 83 void DidSwapBuffers() override;
84 void DidSwapBuffersComplete() override; 84 void DidSwapBuffersComplete() override;
85 void ReclaimResources(const CompositorFrameAck* ack) override; 85 void ReclaimResources(const CompositorFrameAck* ack) override;
86 void DidLoseOutputSurface() override; 86 void DidLoseOutputSurface() override;
87 void SetExternalDrawConstraints( 87 void SetExternalTilePriorityConstraints(
88 const gfx::Transform& transform, 88 const gfx::Rect& viewport_rect,
89 const gfx::Rect& viewport, 89 const gfx::Transform& transform) override;
90 const gfx::Rect& clip,
91 const gfx::Rect& viewport_rect_for_tile_priority,
92 const gfx::Transform& transform_for_tile_priority,
93 bool resourceless_software_draw) override;
94 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override; 90 void SetMemoryPolicy(const ManagedMemoryPolicy& policy) override;
95 void SetTreeActivationCallback(const base::Closure& callback) override; 91 void SetTreeActivationCallback(const base::Closure& callback) override;
96 void OnDraw() override; 92 void OnDraw(const gfx::Transform& transform,
93 const gfx::Rect& viewport,
94 const gfx::Rect& clip,
95 bool resourceless_software_draw) override;
97 96
98 // RendererClient implementation. 97 // RendererClient implementation.
99 void SetFullRootLayerDamage() override; 98 void SetFullRootLayerDamage() override;
100 99
101 // SurfaceDamageObserver implementation. 100 // SurfaceDamageObserver implementation.
102 void OnSurfaceDamaged(SurfaceId surface, bool* changed) override; 101 void OnSurfaceDamaged(SurfaceId surface, bool* changed) override;
103 102
104 private: 103 private:
105 void InitializeRenderer(); 104 void InitializeRenderer();
106 void UpdateRootSurfaceResourcesLocked(); 105 void UpdateRootSurfaceResourcesLocked();
(...skipping 15 matching lines...) Expand all
122 scoped_ptr<DirectRenderer> renderer_; 121 scoped_ptr<DirectRenderer> renderer_;
123 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 122 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
124 std::vector<ui::LatencyInfo> stored_latency_info_; 123 std::vector<ui::LatencyInfo> stored_latency_info_;
125 124
126 DISALLOW_COPY_AND_ASSIGN(Display); 125 DISALLOW_COPY_AND_ASSIGN(Display);
127 }; 126 };
128 127
129 } // namespace cc 128 } // namespace cc
130 129
131 #endif // CC_SURFACES_DISPLAY_H_ 130 #endif // CC_SURFACES_DISPLAY_H_
OLDNEW
« no previous file with comments | « cc/scheduler/scheduler_unittest.cc ('k') | cc/surfaces/display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698