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

Side by Side Diff: cc/raster/raster_buffer_provider_unittest.cc

Issue 2629233002: cc: Remove separate x/y raster scales. (Closed)
Patch Set: Created 3 years, 11 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/raster/raster_buffer_provider.cc ('k') | cc/raster/zero_copy_raster_buffer_provider.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 "cc/raster/raster_buffer_provider.h" 5 #include "cc/raster/raster_buffer_provider.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 75
76 // Overridden from Task: 76 // Overridden from Task:
77 void RunOnWorkerThread() override { 77 void RunOnWorkerThread() override {
78 // Don't use the image hijack canvas for these tests, as they have no image 78 // Don't use the image hijack canvas for these tests, as they have no image
79 // decode controller. 79 // decode controller.
80 RasterSource::PlaybackSettings settings; 80 RasterSource::PlaybackSettings settings;
81 settings.use_image_hijack_canvas = false; 81 settings.use_image_hijack_canvas = false;
82 82
83 uint64_t new_content_id = 0; 83 uint64_t new_content_id = 0;
84 raster_buffer_->Playback(raster_source_.get(), gfx::Rect(1, 1), 84 raster_buffer_->Playback(raster_source_.get(), gfx::Rect(1, 1),
85 gfx::Rect(1, 1), new_content_id, 85 gfx::Rect(1, 1), new_content_id, 1.f, settings);
86 gfx::SizeF(1.f, 1.f), settings);
87 } 86 }
88 87
89 // Overridden from TileTask: 88 // Overridden from TileTask:
90 void OnTaskCompleted() override { 89 void OnTaskCompleted() override {
91 completion_handler_->OnRasterTaskCompleted(std::move(raster_buffer_), id_, 90 completion_handler_->OnRasterTaskCompleted(std::move(raster_buffer_), id_,
92 state().IsCanceled()); 91 state().IsCanceled());
93 } 92 }
94 93
95 protected: 94 protected:
96 ~TestRasterTaskImpl() override {} 95 ~TestRasterTaskImpl() override {}
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 384
386 INSTANTIATE_TEST_CASE_P(RasterBufferProviderTests, 385 INSTANTIATE_TEST_CASE_P(RasterBufferProviderTests,
387 RasterBufferProviderTest, 386 RasterBufferProviderTest,
388 ::testing::Values(RASTER_BUFFER_PROVIDER_TYPE_ZERO_COPY, 387 ::testing::Values(RASTER_BUFFER_PROVIDER_TYPE_ZERO_COPY,
389 RASTER_BUFFER_PROVIDER_TYPE_ONE_COPY, 388 RASTER_BUFFER_PROVIDER_TYPE_ONE_COPY,
390 RASTER_BUFFER_PROVIDER_TYPE_GPU, 389 RASTER_BUFFER_PROVIDER_TYPE_GPU,
391 RASTER_BUFFER_PROVIDER_TYPE_BITMAP)); 390 RASTER_BUFFER_PROVIDER_TYPE_BITMAP));
392 391
393 } // namespace 392 } // namespace
394 } // namespace cc 393 } // namespace cc
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer_provider.cc ('k') | cc/raster/zero_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698