Make Gr clear take a rect for a partial-clear
Review URL: http://codereview.appspot.com/4442093/
git-svn-id: http://skia.googlecode.com/svn/trunk@1203 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/gpu/src/GrGpuGL.h b/gpu/src/GrGpuGL.h
index 918ab80..bfa7351 100644
--- a/gpu/src/GrGpuGL.h
+++ b/gpu/src/GrGpuGL.h
@@ -27,10 +27,11 @@
class GrGpuGL : public GrGpu {
public:
- GrGpuGL();
virtual ~GrGpuGL();
protected:
+ GrGpuGL();
+
struct {
size_t fVertexOffset;
GrVertexLayout fVertexLayout;
@@ -87,7 +88,7 @@
int width, int height);
virtual GrRenderTarget* onCreateRenderTargetFrom3DApiState();
- virtual void onClear(GrColor color);
+ virtual void onClear(const GrIRect* rect, GrColor color);
virtual void onForceRenderTargetFlush();
@@ -140,6 +141,7 @@
static bool BlendCoefReferencesConstant(GrBlendCoeff coeff);
private:
+
// notify callbacks to update state tracking when related
// objects are bound to GL or deleted outside of the class
void notifyVertexBufferBind(const GrGLVertexBuffer* buffer);