Commit 272279c6 authored by enne@chromium.org's avatar enne@chromium.org

cc: Remove legacy accelerated painting path

R=nduca@chromium.org
BUG=none

Review URL: https://chromiumcodereview.appspot.com/16069004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@202761 0039d316-1c4b-4281-b951-d872f2087c98
parent aa2c776a
...@@ -95,21 +95,17 @@ void ContentLayer::CreateUpdaterIfNeeded() { ...@@ -95,21 +95,17 @@ void ContentLayer::CreateUpdaterIfNeeded() {
return; return;
scoped_ptr<LayerPainter> painter = scoped_ptr<LayerPainter> painter =
ContentLayerPainter::Create(client_).PassAs<LayerPainter>(); ContentLayerPainter::Create(client_).PassAs<LayerPainter>();
if (layer_tree_host()->settings().accelerate_painting) if (layer_tree_host()->settings().per_tile_painting_enabled) {
updater_ = SkPictureContentLayerUpdater::Create(
painter.Pass(),
rendering_stats_instrumentation(),
id());
else if (layer_tree_host()->settings().per_tile_painting_enabled)
updater_ = BitmapSkPictureContentLayerUpdater::Create( updater_ = BitmapSkPictureContentLayerUpdater::Create(
painter.Pass(), painter.Pass(),
rendering_stats_instrumentation(), rendering_stats_instrumentation(),
id()); id());
else } else {
updater_ = BitmapContentLayerUpdater::Create( updater_ = BitmapContentLayerUpdater::Create(
painter.Pass(), painter.Pass(),
rendering_stats_instrumentation(), rendering_stats_instrumentation(),
id()); id());
}
updater_->SetOpaque(contents_opaque()); updater_->SetOpaque(contents_opaque());
unsigned texture_format = unsigned texture_format =
......
...@@ -80,16 +80,13 @@ bool DelegatingRenderer::Initialize() { ...@@ -80,16 +80,13 @@ bool DelegatingRenderer::Initialize() {
// TODO(danakj): We need non-GPU-specific paths for these things. This // TODO(danakj): We need non-GPU-specific paths for these things. This
// renderer shouldn't need to use context3d extensions directly. // renderer shouldn't need to use context3d extensions directly.
bool has_read_bgra = false;
bool has_set_visibility = false; bool has_set_visibility = false;
bool has_io_surface = false; bool has_io_surface = false;
bool has_arb_texture_rect = false; bool has_arb_texture_rect = false;
bool has_egl_image = false; bool has_egl_image = false;
bool has_map_image = false; bool has_map_image = false;
for (size_t i = 0; i < extensions.size(); ++i) { for (size_t i = 0; i < extensions.size(); ++i) {
if (extensions[i] == "GL_EXT_read_format_bgra") { if (extensions[i] == "GL_CHROMIUM_set_visibility") {
has_read_bgra = true;
} else if (extensions[i] == "GL_CHROMIUM_set_visibility") {
has_set_visibility = true; has_set_visibility = true;
} else if (extensions[i] == "GL_CHROMIUM_iosurface") { } else if (extensions[i] == "GL_CHROMIUM_iosurface") {
has_io_surface = true; has_io_surface = true;
...@@ -105,11 +102,6 @@ bool DelegatingRenderer::Initialize() { ...@@ -105,11 +102,6 @@ bool DelegatingRenderer::Initialize() {
if (has_io_surface) if (has_io_surface)
DCHECK(has_arb_texture_rect); DCHECK(has_arb_texture_rect);
capabilities_.using_accelerated_painting =
Settings().accelerate_painting &&
capabilities_.best_texture_format == GL_BGRA_EXT &&
has_read_bgra;
// TODO(piman): loop visibility to GPU process? // TODO(piman): loop visibility to GPU process?
capabilities_.using_set_visibility = has_set_visibility; capabilities_.using_set_visibility = has_set_visibility;
......
...@@ -155,13 +155,6 @@ bool GLRenderer::Initialize() { ...@@ -155,13 +155,6 @@ bool GLRenderer::Initialize() {
std::set<std::string> extensions(extensions_list.begin(), std::set<std::string> extensions(extensions_list.begin(),
extensions_list.end()); extensions_list.end());
if (Settings().accelerate_painting &&
extensions.count("GL_EXT_texture_format_BGRA8888") &&
extensions.count("GL_EXT_read_format_bgra"))
capabilities_.using_accelerated_painting = true;
else
capabilities_.using_accelerated_painting = false;
capabilities_.using_partial_swap = capabilities_.using_partial_swap =
Settings().partial_swap_enabled && Settings().partial_swap_enabled &&
extensions.count("GL_CHROMIUM_post_sub_buffer"); extensions.count("GL_CHROMIUM_post_sub_buffer");
......
...@@ -5,7 +5,8 @@ ...@@ -5,7 +5,8 @@
#include "cc/resources/resource_update.h" #include "cc/resources/resource_update.h"
#include "base/logging.h" #include "base/logging.h"
#include "skia/ext/platform_canvas.h" #include "third_party/skia/include/core/SkCanvas.h"
#include "third_party/skia/include/core/SkDevice.h"
namespace cc { namespace cc {
...@@ -41,25 +42,9 @@ ResourceUpdate ResourceUpdate::CreateFromCanvas( ...@@ -41,25 +42,9 @@ ResourceUpdate ResourceUpdate::CreateFromCanvas(
return update; return update;
} }
ResourceUpdate ResourceUpdate::CreateFromPicture(PrioritizedResource* texture,
SkPicture* picture,
gfx::Rect content_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset) {
CHECK(content_rect.Contains(source_rect));
ResourceUpdate update;
update.texture = texture;
update.picture = picture;
update.content_rect = content_rect;
update.source_rect = source_rect;
update.dest_offset = dest_offset;
return update;
}
ResourceUpdate::ResourceUpdate() ResourceUpdate::ResourceUpdate()
: texture(NULL), : texture(NULL),
bitmap(NULL), bitmap(NULL) {}
picture(NULL) {}
ResourceUpdate::~ResourceUpdate() {} ResourceUpdate::~ResourceUpdate() {}
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
#include "ui/gfx/vector2d.h" #include "ui/gfx/vector2d.h"
class SkBitmap; class SkBitmap;
class SkPicture;
class SkCanvas; class SkCanvas;
namespace cc { namespace cc {
...@@ -30,18 +29,12 @@ struct CC_EXPORT ResourceUpdate { ...@@ -30,18 +29,12 @@ struct CC_EXPORT ResourceUpdate {
gfx::Rect content_rect, gfx::Rect content_rect,
gfx::Rect source_rect, gfx::Rect source_rect,
gfx::Vector2d dest_offset); gfx::Vector2d dest_offset);
static ResourceUpdate CreateFromPicture(PrioritizedResource* resource,
SkPicture* bitmap,
gfx::Rect content_rect,
gfx::Rect source_rect,
gfx::Vector2d dest_offset);
ResourceUpdate(); ResourceUpdate();
virtual ~ResourceUpdate(); virtual ~ResourceUpdate();
PrioritizedResource* texture; PrioritizedResource* texture;
const SkBitmap* bitmap; const SkBitmap* bitmap;
SkPicture* picture;
skia::RefPtr<SkCanvas> canvas; skia::RefPtr<SkCanvas> canvas;
gfx::Rect content_rect; gfx::Rect content_rect;
gfx::Rect source_rect; gfx::Rect source_rect;
......
...@@ -4,20 +4,11 @@ ...@@ -4,20 +4,11 @@
#include "cc/resources/resource_update_controller.h" #include "cc/resources/resource_update_controller.h"
#include <limits> #include "base/bind.h"
#include "base/debug/trace_event.h"
#include "cc/base/thread.h" #include "cc/base/thread.h"
#include "cc/output/context_provider.h"
#include "cc/output/texture_copier.h" #include "cc/output/texture_copier.h"
#include "cc/resources/prioritized_resource.h" #include "cc/resources/prioritized_resource.h"
#include "cc/resources/resource_provider.h" #include "cc/resources/resource_provider.h"
#include "skia/ext/refptr.h"
#include "third_party/WebKit/Source/Platform/chromium/public/WebGraphicsContext3D.h"
#include "third_party/khronos/GLES2/gl2.h"
#include "third_party/skia/include/gpu/SkGpuDevice.h"
using WebKit::WebGraphicsContext3D;
namespace { namespace {
...@@ -33,21 +24,6 @@ const double kUploaderBusyTickRate = 0.001; ...@@ -33,21 +24,6 @@ const double kUploaderBusyTickRate = 0.001;
// Number of blocking update intervals to allow. // Number of blocking update intervals to allow.
const size_t kMaxBlockingUpdateIntervals = 4; const size_t kMaxBlockingUpdateIntervals = 4;
skia::RefPtr<SkCanvas> CreateAcceleratedCanvas(
GrContext* gr_context, gfx::Size canvas_size, unsigned texture_id) {
GrBackendTextureDesc texture_desc;
texture_desc.fFlags = kRenderTarget_GrBackendTextureFlag;
texture_desc.fWidth = canvas_size.width();
texture_desc.fHeight = canvas_size.height();
texture_desc.fConfig = kSkia8888_GrPixelConfig;
texture_desc.fTextureHandle = texture_id;
skia::RefPtr<GrTexture> target =
skia::AdoptRef(gr_context->wrapBackendTexture(texture_desc));
skia::RefPtr<SkDevice> device =
skia::AdoptRef(new SkGpuDevice(gr_context, target.get()));
return skia::AdoptRef(new SkCanvas(device.get()));
}
} // namespace } // namespace
namespace cc { namespace cc {
...@@ -111,75 +87,14 @@ void ResourceUpdateController::DiscardUploadsToEvictedResources() { ...@@ -111,75 +87,14 @@ void ResourceUpdateController::DiscardUploadsToEvictedResources() {
} }
void ResourceUpdateController::UpdateTexture(ResourceUpdate update) { void ResourceUpdateController::UpdateTexture(ResourceUpdate update) {
if (update.picture) { update.bitmap->lockPixels();
PrioritizedResource* texture = update.texture; update.texture->SetPixels(
gfx::Rect picture_rect = update.content_rect; resource_provider_,
gfx::Rect source_rect = update.source_rect; static_cast<const uint8_t*>(update.bitmap->getPixels()),
gfx::Vector2d dest_offset = update.dest_offset; update.content_rect,
update.source_rect,
texture->AcquireBackingTexture(resource_provider_); update.dest_offset);
DCHECK(texture->have_backing_texture()); update.bitmap->unlockPixels();
DCHECK_EQ(resource_provider_->GetResourceType(texture->resource_id()),
ResourceProvider::GLTexture);
cc::ContextProvider* offscreen_contexts =
resource_provider_->offscreen_context_provider();
ResourceProvider::ScopedWriteLockGL lock(
resource_provider_, texture->resource_id());
// Flush the compositor context to ensure that textures there are available
// in the shared context. Do this after locking/creating the compositor
// texture.
resource_provider_->Flush();
// Make sure skia uses the correct GL context.
offscreen_contexts->Context3d()->makeContextCurrent();
// Create an accelerated canvas to draw on.
skia::RefPtr<SkCanvas> canvas = CreateAcceleratedCanvas(
offscreen_contexts->GrContext(), texture->size(), lock.texture_id());
// The compositor expects the textures to be upside-down so it can flip
// the final composited image. Ganesh renders the image upright so we
// need to do a y-flip.
canvas->translate(0.0, texture->size().height());
canvas->scale(1.0, -1.0);
// Clip to the destination on the texture that must be updated.
canvas->clipRect(SkRect::MakeXYWH(dest_offset.x(),
dest_offset.y(),
source_rect.width(),
source_rect.height()));
// Translate the origin of picture_rect to dest_offset.
// Note that dest_offset is defined relative to source_rect.
canvas->translate(
picture_rect.x() - source_rect.x() + dest_offset.x(),
picture_rect.y() - source_rect.y() + dest_offset.y());
canvas->drawPicture(*update.picture);
// Flush skia context so that all the rendered stuff appears on the
// texture.
offscreen_contexts->GrContext()->flush();
// Flush the GL context so rendering results from this context are
// visible in the compositor's context.
offscreen_contexts->Context3d()->flush();
// Use the compositor's GL context again.
resource_provider_->GraphicsContext3D()->makeContextCurrent();
}
if (update.bitmap) {
update.bitmap->lockPixels();
update.texture->SetPixels(
resource_provider_,
static_cast<const uint8_t*>(update.bitmap->getPixels()),
update.content_rect,
update.source_rect,
update.dest_offset);
update.bitmap->unlockPixels();
}
} }
void ResourceUpdateController::Finalize() { void ResourceUpdateController::Finalize() {
......
...@@ -13,22 +13,6 @@ ...@@ -13,22 +13,6 @@
namespace cc { namespace cc {
SkPictureContentLayerUpdater::Resource::Resource(
SkPictureContentLayerUpdater* updater,
scoped_ptr<PrioritizedResource> texture)
: LayerUpdater::Resource(texture.Pass()), updater_(updater) {}
SkPictureContentLayerUpdater::Resource::~Resource() {}
void SkPictureContentLayerUpdater::Resource::Update(ResourceUpdateQueue* queue,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
bool partial_update,
RenderingStats*) {
updater_->UpdateTexture(
queue, texture(), source_rect, dest_offset, partial_update);
}
SkPictureContentLayerUpdater::SkPictureContentLayerUpdater( SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
scoped_ptr<LayerPainter> painter, scoped_ptr<LayerPainter> painter,
RenderingStatsInstrumentation* stats_instrumentation, RenderingStatsInstrumentation* stats_instrumentation,
...@@ -38,23 +22,6 @@ SkPictureContentLayerUpdater::SkPictureContentLayerUpdater( ...@@ -38,23 +22,6 @@ SkPictureContentLayerUpdater::SkPictureContentLayerUpdater(
SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {} SkPictureContentLayerUpdater::~SkPictureContentLayerUpdater() {}
scoped_refptr<SkPictureContentLayerUpdater>
SkPictureContentLayerUpdater::Create(
scoped_ptr<LayerPainter> painter,
RenderingStatsInstrumentation* stats_instrumentation,
int layer_id) {
return make_scoped_refptr(
new SkPictureContentLayerUpdater(painter.Pass(),
stats_instrumentation,
layer_id));
}
scoped_ptr<LayerUpdater::Resource> SkPictureContentLayerUpdater::CreateResource(
PrioritizedResourceManager* manager) {
return scoped_ptr<LayerUpdater::Resource>(
new Resource(this, PrioritizedResource::Create(manager)));
}
void SkPictureContentLayerUpdater::PrepareToUpdate( void SkPictureContentLayerUpdater::PrepareToUpdate(
gfx::Rect content_rect, gfx::Rect content_rect,
gfx::Size, gfx::Size,
...@@ -87,19 +54,6 @@ void SkPictureContentLayerUpdater::DrawPicture(SkCanvas* canvas) { ...@@ -87,19 +54,6 @@ void SkPictureContentLayerUpdater::DrawPicture(SkCanvas* canvas) {
canvas->drawPicture(picture_); canvas->drawPicture(picture_);
} }
void SkPictureContentLayerUpdater::UpdateTexture(ResourceUpdateQueue* queue,
PrioritizedResource* texture,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
bool partial_update) {
ResourceUpdate upload = ResourceUpdate::CreateFromPicture(
texture, &picture_, content_rect(), source_rect, dest_offset);
if (partial_update)
queue->AppendPartialUpload(upload);
else
queue->AppendFullUpload(upload);
}
void SkPictureContentLayerUpdater::SetOpaque(bool opaque) { void SkPictureContentLayerUpdater::SetOpaque(bool opaque) {
layer_is_opaque_ = opaque; layer_is_opaque_ = opaque;
} }
......
...@@ -21,31 +21,6 @@ class LayerPainter; ...@@ -21,31 +21,6 @@ class LayerPainter;
// implementations. // implementations.
class SkPictureContentLayerUpdater : public ContentLayerUpdater { class SkPictureContentLayerUpdater : public ContentLayerUpdater {
public: public:
class Resource : public LayerUpdater::Resource {
public:
Resource(SkPictureContentLayerUpdater* updater,
scoped_ptr<PrioritizedResource> texture);
virtual ~Resource();
virtual void Update(ResourceUpdateQueue* queue,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
bool partial_update,
RenderingStats* stats) OVERRIDE;
private:
SkPictureContentLayerUpdater* updater_;
DISALLOW_COPY_AND_ASSIGN(Resource);
};
static scoped_refptr<SkPictureContentLayerUpdater> Create(
scoped_ptr<LayerPainter> painter,
RenderingStatsInstrumentation* stats_instrumentation,
int layer_id);
virtual scoped_ptr<LayerUpdater::Resource> CreateResource(
PrioritizedResourceManager* manager) OVERRIDE;
virtual void SetOpaque(bool opaque) OVERRIDE; virtual void SetOpaque(bool opaque) OVERRIDE;
protected: protected:
...@@ -62,11 +37,6 @@ class SkPictureContentLayerUpdater : public ContentLayerUpdater { ...@@ -62,11 +37,6 @@ class SkPictureContentLayerUpdater : public ContentLayerUpdater {
gfx::Rect* resulting_opaque_rect, gfx::Rect* resulting_opaque_rect,
RenderingStats* stats) OVERRIDE; RenderingStats* stats) OVERRIDE;
void DrawPicture(SkCanvas* canvas); void DrawPicture(SkCanvas* canvas);
void UpdateTexture(ResourceUpdateQueue* queue,
PrioritizedResource* texture,
gfx::Rect source_rect,
gfx::Vector2d dest_offset,
bool partial_update);
bool layer_is_opaque() const { return layer_is_opaque_; } bool layer_is_opaque() const { return layer_is_opaque_; }
......
...@@ -47,7 +47,6 @@ namespace cc { ...@@ -47,7 +47,6 @@ namespace cc {
RendererCapabilities::RendererCapabilities() RendererCapabilities::RendererCapabilities()
: best_texture_format(0), : best_texture_format(0),
using_partial_swap(false), using_partial_swap(false),
using_accelerated_painting(false),
using_set_visibility(false), using_set_visibility(false),
using_swap_complete_callback(false), using_swap_complete_callback(false),
using_gpu_memory_manager(false), using_gpu_memory_manager(false),
...@@ -169,11 +168,6 @@ LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted(bool success) { ...@@ -169,11 +168,6 @@ LayerTreeHost::OnCreateAndInitializeOutputSurfaceAttempted(bool success) {
if (success) { if (success) {
output_surface_lost_ = false; output_surface_lost_ = false;
// Update settings_ based on capabilities that we got back from the
// renderer.
settings_.accelerate_painting =
proxy_->GetRendererCapabilities().using_accelerated_painting;
// Update settings_ based on partial update capability. // Update settings_ based on partial update capability.
size_t max_partial_texture_updates = 0; size_t max_partial_texture_updates = 0;
if (proxy_->GetRendererCapabilities().allow_partial_texture_updates && if (proxy_->GetRendererCapabilities().allow_partial_texture_updates &&
......
...@@ -73,7 +73,6 @@ struct CC_EXPORT RendererCapabilities { ...@@ -73,7 +73,6 @@ struct CC_EXPORT RendererCapabilities {
unsigned best_texture_format; unsigned best_texture_format;
bool using_partial_swap; bool using_partial_swap;
bool using_accelerated_painting;
bool using_set_visibility; bool using_set_visibility;
bool using_swap_complete_callback; bool using_swap_complete_callback;
bool using_gpu_memory_manager; bool using_gpu_memory_manager;
...@@ -99,7 +98,7 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) { ...@@ -99,7 +98,7 @@ class CC_EXPORT LayerTreeHost : NON_EXPORTED_BASE(public RateLimiterClient) {
void set_needs_filter_context() { needs_filter_context_ = true; } void set_needs_filter_context() { needs_filter_context_ = true; }
bool needs_offscreen_context() const { bool needs_offscreen_context() const {
return needs_filter_context_ || settings_.accelerate_painting; return needs_filter_context_;
} }
// LayerTreeHost interface to Proxy. // LayerTreeHost interface to Proxy.
......
...@@ -13,8 +13,7 @@ ...@@ -13,8 +13,7 @@
namespace cc { namespace cc {
LayerTreeSettings::LayerTreeSettings() LayerTreeSettings::LayerTreeSettings()
: accelerate_painting(false), : compositor_frame_message(false),
compositor_frame_message(false),
impl_side_painting(false), impl_side_painting(false),
throttle_frame_production(true), throttle_frame_production(true),
render_parent_drives_begin_frame_(false), render_parent_drives_begin_frame_(false),
......
...@@ -18,7 +18,6 @@ class CC_EXPORT LayerTreeSettings { ...@@ -18,7 +18,6 @@ class CC_EXPORT LayerTreeSettings {
LayerTreeSettings(); LayerTreeSettings();
~LayerTreeSettings(); ~LayerTreeSettings();
bool accelerate_painting;
bool compositor_frame_message; bool compositor_frame_message;
bool impl_side_painting; bool impl_side_painting;
bool throttle_frame_production; bool throttle_frame_production;
......
...@@ -336,14 +336,6 @@ base::Value* GetFeatureStatus() { ...@@ -336,14 +336,6 @@ base::Value* GetFeatureStatus() {
" line or not supported by the current system.", " line or not supported by the current system.",
false false
}, },
{
"raster",
false,
!command_line.HasSwitch(switches::kEnableAcceleratedPainting),
"Accelerated rasterization has not been enabled or"
" is not supported by the current system.",
true
}
}; };
const size_t kNumFeatures = sizeof(kGpuFeatureInfo) / sizeof(GpuFeatureInfo); const size_t kNumFeatures = sizeof(kGpuFeatureInfo) / sizeof(GpuFeatureInfo);
......
...@@ -901,7 +901,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -901,7 +901,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableCompositingForFixedPosition, switches::kDisableCompositingForFixedPosition,
switches::kEnableCompositingForTransition, switches::kEnableCompositingForTransition,
switches::kDisableCompositingForTransition, switches::kDisableCompositingForTransition,
switches::kEnableAcceleratedPainting,
switches::kDisableThreadedCompositing, switches::kDisableThreadedCompositing,
switches::kDisableTouchAdjustment, switches::kDisableTouchAdjustment,
switches::kDefaultTileWidth, switches::kDefaultTileWidth,
......
...@@ -250,9 +250,6 @@ const char kDomAutomationController[] = "dom-automation"; ...@@ -250,9 +250,6 @@ const char kDomAutomationController[] = "dom-automation";
const char kReduceSecurityForDomAutomationTests[] = const char kReduceSecurityForDomAutomationTests[] =
"reduce-security-for-dom-automation-tests"; "reduce-security-for-dom-automation-tests";
// Enable hardware accelerated page painting.
const char kEnableAcceleratedPainting[] = "enable-accelerated-painting";
// Enable gpu-accelerated SVG/W3C filters. // Enable gpu-accelerated SVG/W3C filters.
const char kEnableAcceleratedFilters[] = "enable-accelerated-filters"; const char kEnableAcceleratedFilters[] = "enable-accelerated-filters";
......
...@@ -93,7 +93,6 @@ extern const char kEnableExperimentalWebSocket[]; ...@@ -93,7 +93,6 @@ extern const char kEnableExperimentalWebSocket[];
extern const char kDisableXSSAuditor[]; extern const char kDisableXSSAuditor[];
CONTENT_EXPORT extern const char kDomAutomationController[]; CONTENT_EXPORT extern const char kDomAutomationController[];
CONTENT_EXPORT extern const char kReduceSecurityForDomAutomationTests[]; CONTENT_EXPORT extern const char kReduceSecurityForDomAutomationTests[];
CONTENT_EXPORT extern const char kEnableAcceleratedPainting[];
CONTENT_EXPORT extern const char kEnableAcceleratedFilters[]; CONTENT_EXPORT extern const char kEnableAcceleratedFilters[];
extern const char kEnableAccessibilityLogging[]; extern const char kEnableAccessibilityLogging[];
extern const char kEnableAudibleNotifications[]; extern const char kEnableAudibleNotifications[];
......
...@@ -92,8 +92,6 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create( ...@@ -92,8 +92,6 @@ scoped_ptr<RenderWidgetCompositor> RenderWidgetCompositor::Create(
// to keep content always crisp when possible. // to keep content always crisp when possible.
settings.layer_transforms_should_scale_layer_contents = true; settings.layer_transforms_should_scale_layer_contents = true;
settings.accelerate_painting =
cmd->HasSwitch(switches::kEnableAcceleratedPainting);
settings.throttle_frame_production = settings.throttle_frame_production =
!cmd->HasSwitch(switches::kDisableGpuVsync); !cmd->HasSwitch(switches::kDisableGpuVsync);
settings.render_parent_drives_begin_frame_ = settings.render_parent_drives_begin_frame_ =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment