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

Unified Diff: cc/resources/raster_worker_pool.h

Issue 659563002: cc: Replace RasterBuffer::Acquire/ReleaseCanvas with Playback function. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add temporary size variable 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/raster_buffer.h ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/raster_worker_pool.h
diff --git a/cc/resources/raster_worker_pool.h b/cc/resources/raster_worker_pool.h
index 1863ce45345840cb969e5680938ff2821fe2443e..d3c2e359e80a84f32d2142089e0f1a5974774044 100644
--- a/cc/resources/raster_worker_pool.h
+++ b/cc/resources/raster_worker_pool.h
@@ -6,6 +6,7 @@
#define CC_RESOURCES_RASTER_WORKER_POOL_H_
#include "cc/resources/rasterizer.h"
+#include "ui/gfx/geometry/rect.h"
#include "ui/gfx/geometry/size.h"
namespace base {
@@ -13,6 +14,8 @@ class SequencedTaskRunner;
}
namespace cc {
+class PicturePileImpl;
+class RenderingStatsInstrumentation;
class CC_EXPORT RasterWorkerPool {
public:
@@ -61,16 +64,16 @@ class CC_EXPORT RasterWorkerPool {
const ImageDecodeTask::Vector& decode_tasks,
unsigned priority);
- // Utility functions that transparently create a temporary bitmap and copy
- // pixels to buffer when necessary.
- static void AcquireBitmapForBuffer(SkBitmap* bitmap,
- void* buffer,
- ResourceFormat format,
- const gfx::Size& size,
- int stride);
- static void ReleaseBitmapForBuffer(SkBitmap* bitmap,
- void* buffer,
- ResourceFormat format);
+ // Utility function that will create a temporary bitmap and copy pixels to
+ // |memory| when necessary.
+ static void PlaybackToMemory(void* memory,
+ ResourceFormat format,
+ const gfx::Size& size,
+ int stride,
+ const PicturePileImpl* picture_pile,
+ const gfx::Rect& rect,
+ float scale,
+ RenderingStatsInstrumentation* stats);
// Type-checking downcast routine.
virtual Rasterizer* AsRasterizer() = 0;
« no previous file with comments | « cc/resources/raster_buffer.h ('k') | cc/resources/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698