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

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

Issue 2007593005: Remove the concept of OutputSurface from ResourceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: resourceprovider-no-outputsurface: moreccptcompile Created 4 years, 7 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/gpu_rasterizer.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_RASTERIZER_H_ 5 #ifndef CC_RASTER_GPU_RASTERIZER_H_
6 #define CC_RASTER_GPU_RASTERIZER_H_ 6 #define CC_RASTER_GPU_RASTERIZER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 13 matching lines...) Expand all
24 public: 24 public:
25 ~GpuRasterizer(); 25 ~GpuRasterizer();
26 26
27 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, 27 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock,
28 const RasterSource* raster_source, 28 const RasterSource* raster_source,
29 const gfx::Rect& raster_full_rect, 29 const gfx::Rect& raster_full_rect,
30 const gfx::Rect& playback_rect, 30 const gfx::Rect& playback_rect,
31 float scale, 31 float scale,
32 const RasterSource::PlaybackSettings& playback_settings); 32 const RasterSource::PlaybackSettings& playback_settings);
33 33
34 ResourceProvider* resource_provider() { return resource_provider_; } 34 ResourceProvider* resource_provider() const { return resource_provider_; }
35 ContextProvider* worker_context_provider() const {
36 return worker_context_provider_;
37 }
35 38
36 private: 39 private:
37 GpuRasterizer(ContextProvider* context_provider, 40 GpuRasterizer(ContextProvider* worker_context_provider,
38 ResourceProvider* resource_provider, 41 ResourceProvider* resource_provider,
39 bool use_distance_filed_text, 42 bool use_distance_filed_text,
40 int msaa_sample_count); 43 int msaa_sample_count);
41 44
45 ContextProvider* worker_context_provider_;
42 ResourceProvider* resource_provider_; 46 ResourceProvider* resource_provider_;
43 47
44 bool use_distance_field_text_; 48 bool use_distance_field_text_;
45 int msaa_sample_count_; 49 int msaa_sample_count_;
46 50
47 friend class GpuRasterBufferProvider; 51 friend class GpuRasterBufferProvider;
48 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); 52 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
49 }; 53 };
50 54
51 } // namespace cc 55 } // namespace cc
52 56
53 #endif // CC_RASTER_GPU_RASTERIZER_H_ 57 #endif // CC_RASTER_GPU_RASTERIZER_H_
OLDNEW
« no previous file with comments | « cc/raster/gpu_raster_buffer_provider.cc ('k') | cc/raster/gpu_rasterizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698