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

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

Issue 2110083004: Partial raster for GPU (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@partialuma2
Patch Set: Add missing resource cleanup to unit tests. Created 4 years, 5 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 23 matching lines...) Expand all
34 34
35 // Overridden from RasterBufferProvider: 35 // Overridden from RasterBufferProvider:
36 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 36 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
37 const Resource* resource, 37 const Resource* resource,
38 uint64_t resource_content_id, 38 uint64_t resource_content_id,
39 uint64_t previous_content_id) override; 39 uint64_t previous_content_id) override;
40 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 40 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
41 void OrderingBarrier() override; 41 void OrderingBarrier() override;
42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 42 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 43 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
44 bool IsPartialRasterSupported() const override; 44 bool CanPartialRasterIntoProvidedResource() const override;
45 void Shutdown() override; 45 void Shutdown() override;
46 46
47 // Playback raster source and copy result into |resource|. 47 // Playback raster source and copy result into |resource|.
48 void PlaybackAndCopyOnWorkerThread( 48 void PlaybackAndCopyOnWorkerThread(
49 const Resource* resource, 49 const Resource* resource,
50 ResourceProvider::ScopedWriteLockGL* resource_lock, 50 ResourceProvider::ScopedWriteLockGL* resource_lock,
51 const gpu::SyncToken& sync_token, 51 const gpu::SyncToken& sync_token,
52 const RasterSource* raster_source, 52 const RasterSource* raster_source,
53 const gfx::Rect& raster_full_rect, 53 const gfx::Rect& raster_full_rect,
54 const gfx::Rect& raster_dirty_rect, 54 const gfx::Rect& raster_dirty_rect,
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 const bool async_worker_context_enabled_; 123 const bool async_worker_context_enabled_;
124 124
125 std::set<RasterBufferImpl*> pending_raster_buffers_; 125 std::set<RasterBufferImpl*> pending_raster_buffers_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider); 127 DISALLOW_COPY_AND_ASSIGN(OneCopyRasterBufferProvider);
128 }; 128 };
129 129
130 } // namespace cc 130 } // namespace cc
131 131
132 #endif // CC_RASTER_ONE_COPY_RASTER_BUFFER_PROVIDER_H_ 132 #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