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

Side by Side Diff: cc/output/direct_renderer.h

Issue 147603006: [#7] Resubmitted - Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resubmit 145313006 Created 6 years, 10 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/output/copy_output_result.cc ('k') | cc/output/direct_renderer.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_OUTPUT_DIRECT_RENDERER_H_ 5 #ifndef CC_OUTPUT_DIRECT_RENDERER_H_
6 #define CC_OUTPUT_DIRECT_RENDERER_H_ 6 #define CC_OUTPUT_DIRECT_RENDERER_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/containers/scoped_ptr_hash_map.h" 10 #include "base/containers/scoped_ptr_hash_map.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 OutputSurface* output_surface, 67 OutputSurface* output_surface,
68 ResourceProvider* resource_provider); 68 ResourceProvider* resource_provider);
69 69
70 static gfx::RectF QuadVertexRect(); 70 static gfx::RectF QuadVertexRect();
71 static void QuadRectTransform(gfx::Transform* quad_rect_transform, 71 static void QuadRectTransform(gfx::Transform* quad_rect_transform,
72 const gfx::Transform& quad_transform, 72 const gfx::Transform& quad_transform,
73 const gfx::RectF& quad_rect); 73 const gfx::RectF& quad_rect);
74 void InitializeViewport(DrawingFrame* frame, 74 void InitializeViewport(DrawingFrame* frame,
75 const gfx::Rect& draw_rect, 75 const gfx::Rect& draw_rect,
76 const gfx::Rect& viewport_rect, 76 const gfx::Rect& viewport_rect,
77 gfx::Size surface_size); 77 const gfx::Size& surface_size);
78 gfx::Rect MoveFromDrawToWindowSpace(const gfx::RectF& draw_rect) const; 78 gfx::Rect MoveFromDrawToWindowSpace(const gfx::RectF& draw_rect) const;
79 79
80 bool NeedDeviceClip(const DrawingFrame* frame) const; 80 bool NeedDeviceClip(const DrawingFrame* frame) const;
81 gfx::Rect DeviceClipRectInWindowSpace(const DrawingFrame* frame) const; 81 gfx::Rect DeviceClipRectInWindowSpace(const DrawingFrame* frame) const;
82 static gfx::RectF ComputeScissorRectForRenderPass(const DrawingFrame* frame); 82 static gfx::RectF ComputeScissorRectForRenderPass(const DrawingFrame* frame);
83 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad); 83 void SetScissorStateForQuad(const DrawingFrame* frame, const DrawQuad& quad);
84 void SetScissorStateForQuadWithRenderPassScissor( 84 void SetScissorStateForQuadWithRenderPassScissor(
85 const DrawingFrame* frame, 85 const DrawingFrame* frame,
86 const DrawQuad& quad, 86 const DrawQuad& quad,
87 const gfx::RectF& render_pass_scissor, 87 const gfx::RectF& render_pass_scissor,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 135
136 private: 136 private:
137 gfx::Vector2d enlarge_pass_texture_amount_; 137 gfx::Vector2d enlarge_pass_texture_amount_;
138 138
139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer); 139 DISALLOW_COPY_AND_ASSIGN(DirectRenderer);
140 }; 140 };
141 141
142 } // namespace cc 142 } // namespace cc
143 143
144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_ 144 #endif // CC_OUTPUT_DIRECT_RENDERER_H_
OLDNEW
« no previous file with comments | « cc/output/copy_output_result.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698