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

Side by Side Diff: cc/test/pixel_test.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/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "base/file_util.h" 5 #include "base/file_util.h"
6 #include "cc/output/gl_renderer.h" 6 #include "cc/output/gl_renderer.h"
7 #include "cc/output/software_renderer.h" 7 #include "cc/output/software_renderer.h"
8 #include "cc/quads/render_pass.h" 8 #include "cc/quads/render_pass.h"
9 #include "cc/test/pixel_comparator.h" 9 #include "cc/test/pixel_comparator.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 scoped_ptr<ResourceProvider> resource_provider_; 52 scoped_ptr<ResourceProvider> resource_provider_;
53 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_; 53 scoped_ptr<TextureMailboxDeleter> texture_mailbox_deleter_;
54 scoped_ptr<DirectRenderer> renderer_; 54 scoped_ptr<DirectRenderer> renderer_;
55 scoped_ptr<SkBitmap> result_bitmap_; 55 scoped_ptr<SkBitmap> result_bitmap_;
56 gfx::Vector2d external_device_viewport_offset_; 56 gfx::Vector2d external_device_viewport_offset_;
57 gfx::Rect external_device_clip_rect_; 57 gfx::Rect external_device_clip_rect_;
58 58
59 void SetUpGLRenderer(bool use_skia_gpu_backend); 59 void SetUpGLRenderer(bool use_skia_gpu_backend);
60 void SetUpSoftwareRenderer(); 60 void SetUpSoftwareRenderer();
61 61
62 void ForceExpandedViewport(gfx::Size surface_expansion); 62 void ForceExpandedViewport(const gfx::Size& surface_expansion);
63 void ForceViewportOffset(gfx::Vector2d viewport_offset); 63 void ForceViewportOffset(gfx::Vector2d viewport_offset);
64 void ForceDeviceClip(const gfx::Rect& clip); 64 void ForceDeviceClip(const gfx::Rect& clip);
65 void EnableExternalStencilTest(); 65 void EnableExternalStencilTest();
66 66
67 // RendererClient implementation. 67 // RendererClient implementation.
68 virtual void SetFullRootLayerDamage() OVERRIDE {} 68 virtual void SetFullRootLayerDamage() OVERRIDE {}
69 69
70 private: 70 private:
71 void ReadbackResult(base::Closure quit_run_loop, 71 void ReadbackResult(base::Closure quit_run_loop,
72 scoped_ptr<CopyOutputResult> result); 72 scoped_ptr<CopyOutputResult> result);
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const { 183 SoftwareRendererWithExpandedViewport>::ExpandedViewport() const {
184 return true; 184 return true;
185 } 185 }
186 186
187 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest; 187 typedef RendererPixelTest<GLRenderer> GLRendererPixelTest;
188 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest; 188 typedef RendererPixelTest<SoftwareRenderer> SoftwareRendererPixelTest;
189 189
190 } // namespace cc 190 } // namespace cc
191 191
192 #endif // CC_TEST_PIXEL_TEST_H_ 192 #endif // CC_TEST_PIXEL_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.cc ('k') | cc/test/pixel_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698