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

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

Issue 132163009: [#6]Pass gfx structs by const ref (gfx::Vector2d) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on TOT 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/layers/tiled_layer.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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 gfx::Rect device_clip_rect; 52 gfx::Rect device_clip_rect;
53 53
54 gfx::Transform projection_matrix; 54 gfx::Transform projection_matrix;
55 gfx::Transform window_matrix; 55 gfx::Transform window_matrix;
56 56
57 ContextProvider* offscreen_context_provider; 57 ContextProvider* offscreen_context_provider;
58 58
59 bool disable_picture_quad_image_filtering; 59 bool disable_picture_quad_image_filtering;
60 }; 60 };
61 61
62 void SetEnlargePassTextureAmountForTesting(gfx::Vector2d amount); 62 void SetEnlargePassTextureAmountForTesting(const gfx::Vector2d& amount);
63 63
64 protected: 64 protected:
65 DirectRenderer(RendererClient* client, 65 DirectRenderer(RendererClient* client,
66 const LayerTreeSettings* settings, 66 const LayerTreeSettings* settings,
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,
(...skipping 62 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/layers/tiled_layer.cc ('k') | cc/output/direct_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698