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

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

Issue 2175553002: Raster PictureLayerTiling with fractional translation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: combined Created 3 years, 8 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.h ('k') | cc/raster/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 #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/raster/raster_buffer.h" 10 #include "cc/raster/raster_buffer.h"
(...skipping 20 matching lines...) Expand all
31 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is 31 // smaller contained rect inside the |canvas_bitmap_rect| if the |memory| is
32 // already partially complete, and only the subrect needs to be played back. 32 // already partially complete, and only the subrect needs to be played back.
33 static void PlaybackToMemory( 33 static void PlaybackToMemory(
34 void* memory, 34 void* memory,
35 ResourceFormat format, 35 ResourceFormat format,
36 const gfx::Size& size, 36 const gfx::Size& size,
37 size_t stride, 37 size_t stride,
38 const RasterSource* raster_source, 38 const RasterSource* raster_source,
39 const gfx::Rect& canvas_bitmap_rect, 39 const gfx::Rect& canvas_bitmap_rect,
40 const gfx::Rect& canvas_playback_rect, 40 const gfx::Rect& canvas_playback_rect,
41 float scale, 41 const ScaleTranslate2d& transform,
42 const gfx::ColorSpace& target_color_space, 42 const gfx::ColorSpace& target_color_space,
43 const RasterSource::PlaybackSettings& playback_settings); 43 const RasterSource::PlaybackSettings& playback_settings);
44 44
45 // Acquire raster buffer. 45 // Acquire raster buffer.
46 virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 46 virtual std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
47 const Resource* resource, 47 const Resource* resource,
48 uint64_t resource_content_id, 48 uint64_t resource_content_id,
49 uint64_t previous_content_id) = 0; 49 uint64_t previous_content_id) = 0;
50 50
51 // Release raster buffer. 51 // Release raster buffer.
(...skipping 30 matching lines...) Expand all
82 virtual void Shutdown() = 0; 82 virtual void Shutdown() = 0;
83 83
84 protected: 84 protected:
85 // Check if resource format matches output format. 85 // Check if resource format matches output format.
86 static bool ResourceFormatRequiresSwizzle(ResourceFormat format); 86 static bool ResourceFormatRequiresSwizzle(ResourceFormat format);
87 }; 87 };
88 88
89 } // namespace cc 89 } // namespace cc
90 90
91 #endif // CC_RASTER_RASTER_BUFFER_PROVIDER_H_ 91 #endif // CC_RASTER_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/raster_buffer.h ('k') | cc/raster/raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698