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

Side by Side Diff: cc/raster/gpu_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/bitmap_raster_buffer_provider.cc ('k') | cc/raster/gpu_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_GPU_RASTER_BUFFER_PROVIDER_H_ 5 #ifndef CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
6 #define CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ 6 #define CC_RASTER_GPU_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 16 matching lines...) Expand all
27 27
28 // Overridden from RasterBufferProvider: 28 // Overridden from RasterBufferProvider:
29 std::unique_ptr<RasterBuffer> AcquireBufferForRaster( 29 std::unique_ptr<RasterBuffer> AcquireBufferForRaster(
30 const Resource* resource, 30 const Resource* resource,
31 uint64_t resource_content_id, 31 uint64_t resource_content_id,
32 uint64_t previous_content_id) override; 32 uint64_t previous_content_id) override;
33 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override; 33 void ReleaseBufferForRaster(std::unique_ptr<RasterBuffer> buffer) override;
34 void OrderingBarrier() override; 34 void OrderingBarrier() override;
35 ResourceFormat GetResourceFormat(bool must_support_alpha) const override; 35 ResourceFormat GetResourceFormat(bool must_support_alpha) const override;
36 bool IsResourceSwizzleRequired(bool must_support_alpha) const override; 36 bool IsResourceSwizzleRequired(bool must_support_alpha) const override;
37 bool IsPartialRasterSupported() const override; 37 bool CanPartialRasterIntoProvidedResource() const override;
38 void Shutdown() override; 38 void Shutdown() override;
39 39
40 void PlaybackOnWorkerThread( 40 void PlaybackOnWorkerThread(
41 ResourceProvider::ScopedWriteLockGL* resource_lock, 41 ResourceProvider::ScopedWriteLockGL* resource_lock,
42 const gpu::SyncToken& sync_token, 42 const gpu::SyncToken& sync_token,
43 bool resource_has_previous_content, 43 bool resource_has_previous_content,
44 const RasterSource* raster_source, 44 const RasterSource* raster_source,
45 const gfx::Rect& raster_full_rect, 45 const gfx::Rect& raster_full_rect,
46 const gfx::Rect& raster_dirty_rect, 46 const gfx::Rect& raster_dirty_rect,
47 uint64_t new_content_id, 47 uint64_t new_content_id,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 const bool async_worker_context_enabled_; 89 const bool async_worker_context_enabled_;
90 90
91 std::set<RasterBufferImpl*> pending_raster_buffers_; 91 std::set<RasterBufferImpl*> pending_raster_buffers_;
92 92
93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider); 93 DISALLOW_COPY_AND_ASSIGN(GpuRasterBufferProvider);
94 }; 94 };
95 95
96 } // namespace cc 96 } // namespace cc
97 97
98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_ 98 #endif // CC_RASTER_GPU_RASTER_BUFFER_PROVIDER_H_
OLDNEW
« no previous file with comments | « cc/raster/bitmap_raster_buffer_provider.cc ('k') | cc/raster/gpu_raster_buffer_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698