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

Side by Side Diff: cc/test/pixel_test.cc

Issue 53633003: Do not give GPU memory to backgrounded compositors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove test Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « cc/test/fake_output_surface_client.cc ('k') | cc/test/test_context_provider.h » ('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 "cc/test/pixel_test.h" 5 #include "cc/test/pixel_test.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/run_loop.h" 9 #include "base/run_loop.h"
10 #include "cc/base/switches.h" 10 #include "cc/base/switches.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 virtual void DidLoseOutputSurface() OVERRIDE {} 57 virtual void DidLoseOutputSurface() OVERRIDE {}
58 virtual void SetExternalDrawConstraints( 58 virtual void SetExternalDrawConstraints(
59 const gfx::Transform& transform, 59 const gfx::Transform& transform,
60 gfx::Rect viewport, 60 gfx::Rect viewport,
61 gfx::Rect clip, 61 gfx::Rect clip,
62 bool valid_for_tile_management) OVERRIDE { 62 bool valid_for_tile_management) OVERRIDE {
63 device_viewport_ = viewport; 63 device_viewport_ = viewport;
64 device_clip_ = clip; 64 device_clip_ = clip;
65 } 65 }
66 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {} 66 virtual void SetMemoryPolicy(const ManagedMemoryPolicy& policy) OVERRIDE {}
67 virtual void SetDiscardBackBufferWhenNotVisible(bool discard) OVERRIDE {}
68 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {} 67 virtual void SetTreeActivationCallback(const base::Closure&) OVERRIDE {}
69 68
70 private: 69 private:
71 gfx::Rect device_viewport_; 70 gfx::Rect device_viewport_;
72 gfx::Rect device_clip_; 71 gfx::Rect device_clip_;
73 }; 72 };
74 73
75 PixelTest::PixelTest() 74 PixelTest::PixelTest()
76 : device_viewport_size_(gfx::Size(200, 200)), 75 : device_viewport_size_(gfx::Size(200, 200)),
77 disable_picture_quad_image_filtering_(false), 76 disable_picture_quad_image_filtering_(false),
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 resource_provider_ = 212 resource_provider_ =
214 ResourceProvider::Create(output_surface_.get(), NULL, 0, false); 213 ResourceProvider::Create(output_surface_.get(), NULL, 0, false);
215 renderer_ = SoftwareRenderer::Create(fake_client_.get(), 214 renderer_ = SoftwareRenderer::Create(fake_client_.get(),
216 &settings_, 215 &settings_,
217 output_surface_.get(), 216 output_surface_.get(),
218 resource_provider_.get()) 217 resource_provider_.get())
219 .PassAs<DirectRenderer>(); 218 .PassAs<DirectRenderer>();
220 } 219 }
221 220
222 } // namespace cc 221 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_output_surface_client.cc ('k') | cc/test/test_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698