diff options
author | 2011-07-06 20:00:52 +0000 | |
---|---|---|
committer | 2011-07-06 20:00:52 +0000 | |
commit | cde92111d50a96b6d0f3e166fbac7c9bc6eca349 (patch) | |
tree | b850cfbeffa6df8eba1fe95014357810f2a42730 /src/gpu/SkGpuCanvas.cpp | |
parent | 1e257a5db32e1c9e3b0dba80f43470816ef948af (diff) |
remove SkDeviceFactory from the collective consciousness, now that devices know
how to create compatible siblings.
git-svn-id: http://skia.googlecode.com/svn/trunk@1808 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/gpu/SkGpuCanvas.cpp')
-rw-r--r-- | src/gpu/SkGpuCanvas.cpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/gpu/SkGpuCanvas.cpp b/src/gpu/SkGpuCanvas.cpp index 08cbb32a05..a3bbea82a3 100644 --- a/src/gpu/SkGpuCanvas.cpp +++ b/src/gpu/SkGpuCanvas.cpp @@ -19,18 +19,15 @@ #include "SkGpuCanvas.h" #include "SkGpuDevice.h" -#include "SkGpuDeviceFactory.h" /////////////////////////////////////////////////////////////////////////////// SkGpuCanvas::SkGpuCanvas(GrContext* context, GrRenderTarget* renderTarget) { - SkDeviceFactory* factory = SkNEW_ARGS(SkGpuDeviceFactory, - (context, renderTarget)); - this->setDeviceFactory(factory)->unref(); - SkASSERT(context); fContext = context; fContext->ref(); + + this->setDevice(new SkGpuDevice(context, renderTarget))->unref(); } SkGpuCanvas::~SkGpuCanvas() { |