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

Side by Side Diff: cc/raster/raster_buffer_provider.h

Issue 2563743004: [3/5] Add translated rasterization support for RasterBuffer & below (Closed)
Patch Set: Created 4 years 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
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 #ifndef CC_RASTER_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_RASTER_BUFFER_PROVIDER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "cc/playback/raster_source.h" 10 #include "cc/playback/raster_source.h"
(...skipping 19 matching lines...) Expand all
30 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is 30 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is
31 // already partially complete, and only the subrect needs to be played back. 31 // already partially complete, and only the subrect needs to be played back.
32 static void PlaybackToMemory( 32 static void PlaybackToMemory(
33 void* memory, 33 void* memory,
34 ResourceFormat format, 34 ResourceFormat format,
35 const gfx::Size& size, 35 const gfx::Size& size,
36 size_t stride, 36 size_t stride,
37 const RasterSource* raster_source, 37 const RasterSource* raster_source,
38 const gfx::Rect& canvas_bitmap_rect, 38 const gfx::Rect& canvas_bitmap_rect,
39 const gfx::Rect& canvas_playback_rect, 39 const gfx::Rect& canvas_playback_rect,
40 const gfx::SizeF& scales, 40 const ScaleTranslate2d& transform,
41 sk_sp<SkColorSpace> color_space, 41 sk_sp<SkColorSpace> color_space,
42 const RasterSource::PlaybackSettings& playback_settings); 42 const RasterSource::PlaybackSettings& playback_settings);
43 43
44 // Acquire raster buffer. 44 // Acquire raster buffer.
45 virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 45 virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
46 const Resource* resource, 46 const Resource* resource,
47 uint64_t resource_content_id, 47 uint64_t resource_content_id,
48 uint64_t previous_content_id) = 0; 48 uint64_t previous_content_id) = 0;
49 49
50 // Release raster buffer. 50 // Release raster buffer.
(...skipping 16 matching lines...) Expand all
67 virtual void Shutdown() = 0; 67 virtual void Shutdown() = 0;
68 68
69 protected: 69 protected:
70 // Check if resource format matches output format. 70 // Check if resource format matches output format.
71 static bool ResourceFormatRequiresSwizzle(ResourceFormat format); 71 static bool ResourceFormatRequiresSwizzle(ResourceFormat format);
72 }; 72 };
73 73
74 } // namespace cc 74 } // namespace cc
75 75
76 #endif // CC_RASTER_RASTER_BUFFER_PROVIDER_H_ 76 #endif // CC_RASTER_RASTER_BUFFER_PROVIDER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698