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

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

Issue 2752523006: cc: Use SkCreateColorSpaceXformCanvas for color transforms (Closed)
Patch Set: Rebase Created 3 years, 9 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/gpu_raster_buffer_provider.cc ('k') | cc/raster/one_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl); 95 DISALLOW_COPY_AND_ASSIGN(RasterBufferImpl);
96 }; 96 };
97 97
98 void PlaybackToStagingBuffer( 98 void PlaybackToStagingBuffer(
99 StagingBuffer* staging_buffer, 99 StagingBuffer* staging_buffer,
100 const Resource* resource, 100 const Resource* resource,
101 const RasterSource* raster_source, 101 const RasterSource* raster_source,
102 const gfx::Rect& raster_full_rect, 102 const gfx::Rect& raster_full_rect,
103 const gfx::Rect& raster_dirty_rect, 103 const gfx::Rect& raster_dirty_rect,
104 float scale, 104 float scale,
105 sk_sp<SkColorSpace> dst_color_space, 105 const gfx::ColorSpace& dst_color_space,
106 const RasterSource::PlaybackSettings& playback_settings, 106 const RasterSource::PlaybackSettings& playback_settings,
107 uint64_t previous_content_id, 107 uint64_t previous_content_id,
108 uint64_t new_content_id); 108 uint64_t new_content_id);
109 void CopyOnWorkerThread(StagingBuffer* staging_buffer, 109 void CopyOnWorkerThread(StagingBuffer* staging_buffer,
110 ResourceProvider::ScopedWriteLockGL* resource_lock, 110 ResourceProvider::ScopedWriteLockGL* resource_lock,
111 const gpu::SyncToken& sync_token, 111 const gpu::SyncToken& sync_token,
112 const RasterSource* raster_source, 112 const RasterSource* raster_source,
113 uint64_t previous_content_id, 113 uint64_t previous_content_id,
114 uint64_t new_content_id); 114 uint64_t new_content_id);
115 gfx::BufferUsage StagingBufferUsage() const; 115 gfx::BufferUsage StagingBufferUsage() const;
(...skipping 13 matching lines...) Expand all
129 const bool async_worker_context_enabled_; 129 const bool async_worker_context_enabled_;
130 130
131 std::set<RasterBufferImpl*> pending_raster_buffers_; 131 std::set<RasterBufferImpl*> pending_raster_buffers_;
132 132
133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); 133 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider);
134 }; 134 };
135 135
136 } // namespace cc 136 } // namespace cc
137 137
138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 138 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | cc/raster/one_copy_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698