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

Unified Diff: cc/resources/gpu_raster_worker_pool.cc

Issue 669813003: Update from chromium https://crrev.com/301725/ (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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/resources/gpu_memory_buffer_manager.h ('k') | cc/resources/one_copy_raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/gpu_raster_worker_pool.cc
diff --git a/cc/resources/gpu_raster_worker_pool.cc b/cc/resources/gpu_raster_worker_pool.cc
index cba427ebad4ec63920f4fdb428bf88e5a93435b4..3237500eb3f5874b8d867c9907823d2f40e9c4e8 100644
--- a/cc/resources/gpu_raster_worker_pool.cc
+++ b/cc/resources/gpu_raster_worker_pool.cc
@@ -8,8 +8,8 @@
#include "base/debug/trace_event.h"
#include "cc/output/context_provider.h"
-#include "cc/resources/picture_pile_impl.h"
#include "cc/resources/raster_buffer.h"
+#include "cc/resources/raster_source.h"
#include "cc/resources/resource.h"
#include "cc/resources/resource_provider.h"
#include "cc/resources/scoped_gpu_raster.h"
@@ -34,14 +34,14 @@ class RasterBufferImpl : public RasterBuffer {
use_distance_field_text_(use_distance_field_text) {}
// Overridden from RasterBuffer:
- void Playback(const PicturePileImpl* picture_pile,
+ void Playback(const RasterSource* raster_source,
const gfx::Rect& rect,
float scale,
RenderingStatsInstrumentation* stats) override {
// Turn on distance fields for layers that have ever animated.
bool use_distance_field_text =
use_distance_field_text_ ||
- picture_pile->likely_to_be_used_for_transform_animation();
+ raster_source->SuitableForDistanceFieldText();
SkSurface* sk_surface = lock_.GetSkSurface(use_distance_field_text);
if (!sk_surface)
@@ -53,7 +53,7 @@ class RasterBufferImpl : public RasterBuffer {
skia::SharePtr(recorder.beginRecording(size.width(), size.height()));
canvas->save();
- picture_pile->RasterToBitmap(canvas.get(), rect, scale, stats);
+ raster_source->PlaybackToCanvas(canvas.get(), rect, scale, stats);
canvas->restore();
// Add the canvas and recorded picture to |multi_picture_draw_|.
« no previous file with comments | « cc/resources/gpu_memory_buffer_manager.h ('k') | cc/resources/one_copy_raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698