OLD | NEW |
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 "cc/test/pixel_test.h" | 5 #include "cc/test/pixel_test.h" |
6 | 6 |
7 #include "base/path_service.h" | 7 #include "base/path_service.h" |
8 #include "base/run_loop.h" | 8 #include "base/run_loop.h" |
9 #include "cc/output/compositor_frame_metadata.h" | 9 #include "cc/output/compositor_frame_metadata.h" |
10 #include "cc/output/copy_output_request.h" | 10 #include "cc/output/copy_output_request.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 virtual void DidLoseOutputSurface() OVERRIDE {} | 55 virtual void DidLoseOutputSurface() OVERRIDE {} |
56 virtual void SetExternalDrawConstraints( | 56 virtual void SetExternalDrawConstraints( |
57 const gfx::Transform& transform, | 57 const gfx::Transform& transform, |
58 gfx::Rect viewport, | 58 gfx::Rect viewport, |
59 gfx::Rect clip, | 59 gfx::Rect clip, |
60 bool valid_for_tile_management) OVERRIDE { | 60 bool valid_for_tile_management) OVERRIDE { |
61 device_viewport_ = viewport; | 61 device_viewport_ = viewport; |
62 device_clip_ = clip; | 62 device_clip_ = clip; |
63 } | 63 } |
64 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} | 64 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} |
65 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE {} | |
66 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {} | 65 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {} |
67 | 66 |
68 private: | 67 private: |
69 gfx::Rect device_viewport_; | 68 gfx::Rect device_viewport_; |
70 gfx::Rect device_clip_; | 69 gfx::Rect device_clip_; |
71 }; | 70 }; |
72 | 71 |
73 PixelTest::PixelTest() | 72 PixelTest::PixelTest() |
74 : device_viewport_size_(gfx::Size(200, 200)), | 73 : device_viewport_size_(gfx::Size(200, 200)), |
75 disable_picture_quad_image_filtering_(false), | 74 disable_picture_quad_image_filtering_(false), |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 resource_provider_ = | 209 resource_provider_ = |
211 ResourceProvider::Create(output_surface_.get(), NULL, 0, false); | 210 ResourceProvider::Create(output_surface_.get(), NULL, 0, false); |
212 renderer_ = SoftwareRenderer::Create(fake_client_.get(), | 211 renderer_ = SoftwareRenderer::Create(fake_client_.get(), |
213 &settings_, | 212 &settings_, |
214 output_surface_.get(), | 213 output_surface_.get(), |
215 resource_provider_.get()) | 214 resource_provider_.get()) |
216 .PassAs<DirectRenderer>(); | 215 .PassAs<DirectRenderer>(); |
217 } | 216 } |
218 | 217 |
219 } // namespace cc | 218 } // namespace cc |
OLD | NEW |