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

Unified Diff: cc/layers/texture_layer_impl_unittest.cc

Issue 2654993004: Move GPU blacklist calculation to GPU proc (Closed)
Patch Set: fix win clang build Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/test/fake_compositor_frame_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/texture_layer_impl_unittest.cc
diff --git a/cc/layers/texture_layer_impl_unittest.cc b/cc/layers/texture_layer_impl_unittest.cc
index 870962cfb7c35a938c6157bea28c78b82222eb5a..babb446d456f4d903852cea24267e49e782cae24 100644
--- a/cc/layers/texture_layer_impl_unittest.cc
+++ b/cc/layers/texture_layer_impl_unittest.cc
@@ -10,6 +10,7 @@
#include "cc/output/context_provider.h"
#include "cc/quads/draw_quad.h"
#include "cc/quads/texture_draw_quad.h"
+#include "cc/test/fake_compositor_frame_sink.h"
#include "cc/test/layer_test_common.h"
#include "gpu/command_buffer/client/gles2_interface.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -148,10 +149,9 @@ TEST(TextureLayerImplTest, OutputIsSecure) {
}
TEST(TextureLayerImplTest, ResourceNotFreedOnGpuRasterToggle) {
- LayerTreeSettings settings;
- settings.gpu_rasterization_enabled = true;
bool released = false;
- LayerTestCommon::LayerImplTest impl(settings);
+ LayerTestCommon::LayerImplTest impl(
+ FakeCompositorFrameSink::Create3dForGpuRasterization());
impl.host_impl()->AdvanceToNextFrame(base::TimeDelta::FromMilliseconds(1));
gfx::Size layer_size(1000, 1000);
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/test/fake_compositor_frame_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698