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

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

Issue 1174733003: cc, gpu: Use RGBA when using msaa on systems that don't support BGRA (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove test code Created 5 years, 6 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
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 "cc/base/cc_export.h" 10 #include "cc/base/cc_export.h"
(...skipping 11 matching lines...) Expand all
22 public: 22 public:
23 ~GpuRasterizer(); 23 ~GpuRasterizer();
24 24
25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock, 25 void RasterizeSource(ResourceProvider::ScopedWriteLockGr* write_lock,
26 const RasterSource* raster_source, 26 const RasterSource* raster_source,
27 const gfx::Rect& raster_full_rect, 27 const gfx::Rect& raster_full_rect,
28 const gfx::Rect& playback_rect, 28 const gfx::Rect& playback_rect,
29 float scale); 29 float scale);
30 30
31 ResourceProvider* resource_provider() { return resource_provider_; } 31 ResourceProvider* resource_provider() { return resource_provider_; }
32 int msaa_sample_count() const { return msaa_sample_count_; }
32 33
33 private: 34 private:
34 GpuRasterizer(ContextProvider* context_provider, 35 GpuRasterizer(ContextProvider* context_provider,
35 ResourceProvider* resource_provider, 36 ResourceProvider* resource_provider,
36 bool use_distance_filed_text, 37 bool use_distance_filed_text,
37 int msaa_sample_count); 38 int msaa_sample_count);
38 39
39 ResourceProvider* resource_provider_; 40 ResourceProvider* resource_provider_;
40 41
41 bool use_distance_field_text_; 42 bool use_distance_field_text_;
42 int msaa_sample_count_; 43 int msaa_sample_count_;
43 44
44 friend class GpuTileTaskWorkerPool; 45 friend class GpuTileTaskWorkerPool;
45 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer); 46 DISALLOW_COPY_AND_ASSIGN(GpuRasterizer);
46 }; 47 };
47 48
48 } // namespace cc 49 } // namespace cc
49 50
50 #endif // CC_RASTER_GPU_RASTERIZER_H_ 51 #endif // CC_RASTER_GPU_RASTERIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698