Remove forceRenderTargetFlush (unused)
authorcommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 25 Mar 2014 22:07:24 +0000 (22:07 +0000)
committercommit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>
Tue, 25 Mar 2014 22:07:24 +0000 (22:07 +0000)
R=robertphillips@google.com

Author: bsalomon@google.com

Review URL: https://codereview.chromium.org/210253004

git-svn-id: http://skia.googlecode.com/svn/trunk@13948 2bbb7eff-a529-9590-31e7-b0007b416f81

src/gpu/GrGpu.cpp
src/gpu/GrGpu.h
src/gpu/gl/GrGpuGL.cpp
src/gpu/gl/GrGpuGL.h

index 328b40e..7c694c9 100644 (file)
@@ -219,11 +219,6 @@ void GrGpu::clear(const SkIRect* rect,
     this->onClear(rect, color, canIgnoreRect);
 }
 
-void GrGpu::forceRenderTargetFlush() {
-    this->handleDirtyContext();
-    this->onForceRenderTargetFlush();
-}
-
 bool GrGpu::readPixels(GrRenderTarget* target,
                        int left, int top, int width, int height,
                        GrPixelConfig config, void* buffer,
index e8ccc26..d73fa59 100644 (file)
@@ -141,13 +141,6 @@ public:
     void resolveRenderTarget(GrRenderTarget* target);
 
     /**
-     * Ensures that the current render target is actually set in the
-     * underlying 3D API. Used when client wants to use 3D API to directly
-     * render to the RT.
-     */
-    void forceRenderTargetFlush();
-
-    /**
      * Gets a preferred 8888 config to use for writing/reading pixel data to/from a surface with
      * config surfaceConfig. The returned config must have at least as many bits per channel as the
      * readConfig or writeConfig param.
@@ -442,9 +435,6 @@ private:
     virtual void onGpuDrawPaths(size_t, const GrPath**, const SkMatrix*,
                                 SkPath::FillType, SkStrokeRec::Style) = 0;
 
-    // overridden by backend-specific derived class to perform flush
-    virtual void onForceRenderTargetFlush() = 0;
-
     // overridden by backend-specific derived class to perform the read pixels.
     virtual bool onReadPixels(GrRenderTarget* target,
                               int left, int top, int width, int height,
index 8c6145a..dc2ef7d 100644 (file)
@@ -1351,10 +1351,6 @@ void GrGpuGL::clearStencilClip(const SkIRect& rect, bool insideClip) {
     fHWStencilSettings.invalidate();
 }
 
-void GrGpuGL::onForceRenderTargetFlush() {
-    this->flushRenderTarget(&SkIRect::EmptyIRect());
-}
-
 bool GrGpuGL::readPixelsWillPayForYFlip(GrRenderTarget* renderTarget,
                                         int left, int top,
                                         int width, int height,
index 574bf24..600b345 100644 (file)
@@ -136,8 +136,6 @@ private:
 
     virtual void onClear(const SkIRect* rect, GrColor color, bool canIgnoreRect) SK_OVERRIDE;
 
-    virtual void onForceRenderTargetFlush() SK_OVERRIDE;
-
     virtual bool onReadPixels(GrRenderTarget* target,
                               int left, int top,
                               int width, int height,