aboutsummaryrefslogtreecommitdiffhomepage
path: root/gpu/src/GrGpuGL.h
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-27 19:55:29 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2011-04-27 19:55:29 +0000
commit6aa25c3f555dc2a6711365d14279db3ec909e064 (patch)
tree812992d91c5188d65e321b95eb3e12f7bdcfdc42 /gpu/src/GrGpuGL.h
parentc4654ba2e80b200d693894477d07460c45aaa307 (diff)
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
Diffstat (limited to 'gpu/src/GrGpuGL.h')
-rw-r--r--gpu/src/GrGpuGL.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/gpu/src/GrGpuGL.h b/gpu/src/GrGpuGL.h
index 918ab80f0f..bfa73513e7 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 @@ protected:
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 @@ protected:
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);